UITextView can not detect link & address in iOS 7

送分小仙女□ 提交于 2019-12-05 09:57:24

This appears to be a bug in iOS 7.0's UITextViews. You should check out NSDataDetector.You can use this to find links, phone numbers and more http://nshipster.com/nsdatadetector/

It appears that the trick is to textView.scrollEnabled = NO. Seems to fix the problem, although if you need scrolling.

It appears that on 7.1 links are detected when Selectable but not Editable.

(IB reports Unsupported Configuration: Data Detection and Editable attributes are mutually exclusive)

try just to retype "xyz@gmail.com" or different address. I had the same issues and had to retype email addresses instead of copy/pasting them.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!