Quantcast
Channel: Infragistics Community
Viewing all articles
Browse latest Browse all 2223

iOS Quick Tip: Create a UILabel Where Each Letter in the String is a Different Color

$
0
0
In iOS 6, Apple introduced the NSMutableAttributedString class. Along with it, all of their UIViews which previously exposed a text property, now expose an "attributedText" property. Recently I was working on an App, where the design required each character in a string to be a different color. Using attributed strings it turned out to be really simple, so i thought i'd share my solution with you today. You can simply copy this method into your project and use it as necessary, it just...(read more)

Viewing all articles
Browse latest Browse all 2223

Trending Articles