How to highlight each word in UITextView
How can we highl开发者_JAVA技巧ight each word in a UITextView programmatically ?
Any help will be greatly appreciated.
Thanks
Another way would be to put it in a UIWebView and use HTML to set the background colour of say a with css.
Sorry, you can't do this using UITextView. You should use NSAttributedString
.
Controller for NSAttributedString
精彩评论