Reputation: 4994
iam trying to bold / italic text but i use this code to bold my font but when i press bold button whole the UITExtView going to bold but i want select some text and bold / italic or change the color of them ..
textPad.font = [UIFont boldSystemFontOfSize:12];
Upvotes: 0
Views: 3586
Reputation: 2352
I know this is an old thread, but this is something I just discovered myself. At least in Xcode version 4.6.3 this is possible by using an attributed textView. What's even better is that it's possible to all be done in Interface Builder!
Here are the steps:
Enjoy!
Upvotes: 0
Reputation: 19789
You can't. UITextView
is all one font. Simplest way to get proper text styling is to use a UIWebView
instead.
Upvotes: 4