开发者

How to Make URLs clickable inside of UITableViewCell?

开发者 https://www.devze.com 2022-12-25 02:30 出处:网络
I know how to use UIWebView and can invoke a WebView if it is associated with a specific button or UITableViewCell. What I am trying to achieve is to have a UITableViewCell with a chunk of text. That

I know how to use UIWebView and can invoke a WebView if it is associated with a specific button or UITableViewCell. What I am trying to achieve is to have a UITableViewCell with a chunk of text. That chunk of text might contain a URL. I want to make the URL into a clickable link and have that link open into a WebView.

My thought so far has been that I need to detect a link and insert it as a UIButton within the cell... but I don't know if that is the right way 开发者_JAVA百科to go about this.

Any ideas or input would be much appreciated.


Have a look at the TTLink class in combination with TTTableControlCell of the excellent Three20 project.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号