问题
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....
回答1:
Simply use TTTAttributedLabel It's perfect for your purpose.
回答2:
You could also UIWebView for displaying rich content in iPhone.
Display Rich Text Using a UIWebView
回答3:
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
来源:https://stackoverflow.com/questions/7385892/how-can-i-set-substring-of-a-nsstring-as-bold-in-uilabel