开发者

iPhone OS syntax highlighting UITextField

开发者 https://www.devze.com 2023-01-02 06:56 出处:网络
I am开发者_开发百科 working on an application and would like to apply syntax highlighting to some user-entered text. I have looked around, and some people are suggesting that this can be done in iOS 3

I am开发者_开发百科 working on an application and would like to apply syntax highlighting to some user-entered text. I have looked around, and some people are suggesting that this can be done in iOS 3.2+ but posts seem to be from before the NDA was lifted. Does anyone have any suggestions as to how to go about doing this?

I would be interested in releasing the code on github if I could get it implemented well, as I have never done so before.

Thanks


If you're developing for 3.2 and later, you can use NSAttributedString for this.

If you want to support earlier versions, using a UIWebView would probably be the easiest way.

0

精彩评论

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

关注公众号