开发者

Hyperlinks in UITableViewCell

开发者 https://www.devze.com 2023-03-12 17:39 出处:网络
Edit: The data in the cell can contain multiple lines of text with hyperlinks in between I was trying to embed hyperlinks in my UITableViewCell. I have tried adding UITextView as a subview of the ce

Edit:

The data in the cell can contain multiple lines of text with hyperlinks in between

I was trying to embed hyperlinks in my UITableViewCell. I have tried adding UITextView as a subview of the cell.. however, it makes scrolling jerky. After profiling I found out 30% of the time was taken by setText in UITex开发者_如何转开发tView.

Isn't there any other way beside adding the classes from the Three20 project.

Regards, Satyam Shekhar


The way I do hyperlinks is I create a UILabel with the hyperlink text and then create a UIButton of type UIButtonCustomType that is transparent and give it an action to open an URL.

0

精彩评论

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

关注公众号