Has anyone tried to change the font formatting(bold/italic/color) of a selected word or sentence in a UITextView, like a text editor application? I have been trying to do this but it seems formatting is applied only to the whole text, not on individual words or sentences.
Asked
Active
Viewed 749 times
2 Answers
1
you can change any specific word font, style and size also,
Make UITextView text to "Attributed", by default it was "Plain" and then you can perform edition on selected text.

Hardik Darji
- 3,633
- 1
- 30
- 30
0
UITextView
cannot style text fragments. Styles, colors and fonts are applied to the entire text. You may wish to use a UIWebView
or Core Text to render your text instead.

BoltClock
- 700,868
- 160
- 1,392
- 1,356
-
Accepted for CoreText...I am going with that option. – Vin Jan 14 '11 at 07:32