iPhone's UILabel with URL detection

ぃ、小莉子 提交于 2019-12-21 02:52:04

问题


I'm looking for an iPhone control that can simply display some text and detect URL's (http, email, tel) inside that text. UILabel doesn't support URL detection. UITextView can do that, but it's too heavy for use in chat application that I'm developing. Any suggestions will be appreciated.


回答1:


You can use the same tools that the facebook app uses: three20

Joe Hewitt, the developer behind the facebook app has open sourced much of his work. You can get it and many other goodies here.




回答2:


Craig Hockenberry did it for Twitteriffic. He provides the downloads here: http://furbo.org/2008/10/07/fancy-uilabels/



来源:https://stackoverflow.com/questions/1544604/iphones-uilabel-with-url-detection

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!