开发者

iPhone OS syntax highlighting UITextField

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜