How to display clickable links in UITextView

后端 未结 3 658
轮回少年
轮回少年 2020-12-01 12:36

I am trying to display an attributed string in a UITextview with clickable links. I\'ve created a simple test project to see where I\'m going wrong and still can\'t figure i

3条回答
  •  甜味超标
    2020-12-01 13:24

    Just select the UITextView in your storyboard and go to "Show Attributes inspector" and select selectable and links. As the image below shows. Make sure Editable is unchecked.

提交回复
热议问题