将标签变成超链接 Iphone
我有一个 UILabel,其文本是 www.google.com。现在,如果有人将光标移动到文本上并按下它,谷歌的主页应该会打开。是否可以?请解释一下如何....
I have a UILabel which text is www.google.com. Now if someone moves the cursor on the text and press it the google's homepage should be open. Is it possible? please explain how....
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这可能是您需要查看的方向:在 UILabel 的 NSAttributedString 中创建可点击的“链接” ?,然后转到:http://furbo.org/2008 /10/07/fancy-uilabels/
This is probably the direction you need to go see: Create tap-able "links" in the NSAttributedString of a UILabel? and then go to: http://furbo.org/2008/10/07/fancy-uilabels/