开发者

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

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜