Is there an easy way to change a single characters color in a textview?
Thanks!
Is there an easy way to change a single characters color in a textview?
Thanks!
No, that's impossible. Use a UIWebView instead, it will give you all the flexibility html has to offer.
You can, but you'll have to resort to an undocumented method, so I suggest you do this just for fun, not for an app that you're going to sell on AppStore:
[theTextView setContentToHTMLString: content];
Here, content
is a NSString that contains HTML markup, allowing you to assign it to something like "<font color='red'>T</font>he first letter of this text is red and the letter <font color='green'>Z</font> here is green"
.