开发者

How to highlight each word in UITextView

开发者 https://www.devze.com 2023-01-29 16:30 出处:网络
How can we highl开发者_JAVA技巧ight each word in a UITextView programmatically ? Any help will be greatly appreciated.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消