Yes, many people are saying about Rich Text in iPhone/iPad and many knows about NSAttributedString
.
But how to use NSAttributedString
? I searched for much time, no extract clues for this.
I know how to set up a NSAttributedString
, then what should I do to display a text on iPhone/iPad with rich text?
The official docs says it should be used with CoreText.Framework
, what does that mean?
Is there any simple way like this?
NSAttributedString *str;
.....
UILabel *label;
label.attributedString = str;
Best Solution
Starting from the iOS 6.0 you can do it like that: