Xcode 9 UITextView links no longer clickable

后端 未结 2 1719
轮回少年
轮回少年 2021-01-02 07:31

Prior to Xcode 9 and iOS 11 I had a UITextView within a UITableViewCell that contained multiple links. Each link worked as expected, however since

2条回答
  •  时光说笑
    2021-01-02 08:05

    Turns out there wasn't a problem after all. Changes in the way UITextView responds to touches in iOS11 means that clicking links requires more of a press rather than just a tap which previously worked in iOS10. I think this may be something to do with the fact that in iOS11 you can now press links and drag them which also displays details of URL. So a firmer press is needed for the UITextView to register the link being tapped.

提交回复
热议问题