Can't make URL clickable in UITextView

后端 未结 3 1726
逝去的感伤
逝去的感伤 2021-01-17 09:45

I\'m using Interface Builder to layout my app. I have a UITextView that contains some text, part of which is a URL that I\'d like to make clickable (e.g. launches a browser

3条回答
  •  迷失自我
    2021-01-17 10:02

    Check the "Selectable" and "Links" checkboxes in the textview Attributes Inspector:

    enter image description here

提交回复
热议问题