Giter VIP home page Giter VIP logo

colorfullabel's Introduction

ColorfulLabel

这个小项目来源于日常工作中遇到的非常可笑的事,在开发工作中,时常会遇到很多的“第一次”,针对这些“第一次”,我不是直接通过搜索引擎来查找方案,而是经过一番思考,得出自己认为的“实现方案”,最终也能达到效果,可是很多时候,我们使用的都是“旁门左道”,真正的良好方法其实早就存在。

经过导师们的指点,我觉得有必要将遇到的啼笑皆非的一些故事通过代码的方式展现出来,以期与有缘人共勉。

Introduction

ColorfulLabel是一个完整的Xcode工程,直接打开即可查看内部代码;

主要包含:

  • 在一个UILabel中实现不同色彩文字共存的方法;
  • 在一个UILabel中添加阴影的两种实现;

代码中前半部分为“初级方案”,后半部分为常见解决方案,“初级方案”仅供娱乐,请以常见的解决方案为参考。

Copyright

基于GPL(General Public License)协议开源。

colorfullabel's People

Watchers

James Cloos avatar Acttos Ma avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.