Use TTTAttributedLabel for "gangnam styled" labels
NSAttributedString is pretty rad. When it was ported into iOS 4 from Mac OS, iPhone developers everywhere rejoiced. Unfortunately, as of iOS 4 none of the standard controls in UIKit support it. Bummer!
So that's where TTTAttributedLabel by Matt Thompson (http://coderwall.com/mattt) comes in. It's a drop-in replacement for UILabel that supports NSAttributedStrings. Do I even need to say more?
Check it out: https://github.com/mattt/TTTAttributedLabel.
Written by Wouter Martens
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Xcode
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#