开发者

XIB Links and Phone Numbers detection color

I find that auto detection of links and phone numbers in xib textfields is very useful,

开发者_如何学Python

is it possible to change the color of the autodetected link or number?


In a UIWebView the detected data is just rendered as a link, so CSS will let you change that. In the UITextView, there isn't a method to make the change, so I would guess that you cannot. Additionally, you run afoul of the iOS GUI guidelines by making a link a color other than blue.

If you're dead set on changing the link colors then I would render your text in a UIWebView instead of a UITextView and use CSS. I wouldn't try to use UITextViews and private API's.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜