Create tap-able “links” in the NSAttributedString of a UILabel?

前端 未结 30 3037
半阙折子戏
半阙折子戏 2020-11-22 02:07

I have been searching this for hours but I\'ve failed. I probably don\'t even know what I should be looking for.

Many applications have text and in this text are web

30条回答
  •  粉色の甜心
    2020-11-22 02:52

    UITextView supports data-detectors in OS3.0, whereas UILabel doesn't.

    If you enable the data-detectors on the UITextView and your text contains URLs, phone numbers, etc. they will appear as links.

提交回复
热议问题