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)
↧