-1

is there a way where we can change the color of the first text in UITextView and the rest of the text will in default color which is black

vikingosegundo
  • 52,040
  • 14
  • 137
  • 178
raptor85
  • 125
  • 2
  • 4
  • 12

1 Answers1

0

If you are asking if you can change the color of a word or sentence of a UITextView but not the entire content, the answer is no unfortunately.

Check this answer here, Change font of individual words in UITextView in Interface Builder

It is possible to use a UIWebView to render the text in the manner you are asking. You could also draw it yourself using CoreText, but that would be quite a pain.

Hope this helps, Matt

Community
  • 1
  • 1
MGA
  • 3,711
  • 1
  • 21
  • 22