UITextView link detection in iOS 7

后端 未结 17 1321
再見小時候
再見小時候 2020-12-01 10:22

I have a UITextView which is managed via Interface Builder. As data detection I have \"Links\" checked. In iOS 6 everything is working fine and links are highli

17条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-01 10:50

    It seems that in iOS 7 link detection only works if the UITextView is selectable. So making my UITextView not selectable stopped the the link detection from working.

    I also tested this in iOS 6 and I can confirm that in iOS 6 the link detection works fine even with the UITextView not being selectable.

提交回复
热议问题