1

Possible Duplicate:
Bold & Non-Bold Text In A Single UILabel?

I want to know that how can I set substring of a NSString as bold in UILabel ?

for example : I have a string in UILabel say,

*Apply to a bill of $16 or more 

and I want to make " $16 " bold .

Thanks....

Community
  • 1
  • 1
Maulik
  • 19,348
  • 14
  • 82
  • 137
  • Try to search for "rich text uilabel" for example, there are many similar questions here: http://stackoverflow.com/questions/3586871/bold-non-bold-text-in-a-single-uilabel – phi Sep 12 '11 at 09:43

3 Answers3

1

You could also UIWebView for displaying rich content in iPhone.

Display Rich Text Using a UIWebView

Jhaliya - Praveen Sharma
  • 31,697
  • 9
  • 72
  • 76
1

Simply use TTTAttributedLabel It's perfect for your purpose.

cel
  • 153
  • 5
0

You can't. iOS 4 does not support rich text in UILabel yet.

Try some of the answers in this thread: UILabel with basic rich text support

Community
  • 1
  • 1
Enrico Susatyo
  • 19,372
  • 18
  • 95
  • 156