Not too long ago I mentioned a great open source projects utilizing Core Text and NSAttributedString to replace the UITextView component for easily formatted editable text.
I’ve found a component that was designed to be a drop-in component for UILabel replacement that is very easy to use, and includes an excellent example basically showing everything you need to know. No need to fiddle around with things, if you just want to add some formatted text quickly this is a great solution.
Here’s a screenshot from the demo project:
The project is TTTAttributedLabel From Matt Thompson and can be found on Github here:
https://github.com/mattt/TTTAttributedLabel
I’ve also seen OHAttributedLabel which looks great too:
https://github.com/AliSoftware/OHAttributedLabel
That one is not a drop-in replacement, but rather a set of helper libraries for applying formatting to your UILabel’s which is great for making existing UILabel’s look good.
©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.
.







