How to change word color in UITextView?

Is it possible to change the color of a UITextView in a specific range or a specific word? If a word appears more than once in a view, change the color of that word.

+1
source share
2 answers

I am solving a problem. I subclassed UILable and UITextView using body text (CATextLayer) as a layer on the label / text view, and NSAttributedString will store all font and color information

0
source

NSAttributedString. AliSoftware OHAttributedLabel, UILabel NSAttributedString . , .

+2

All Articles