UITableViewCell中的UIWebView在滚动时刷新 [英] UIWebView in UITableViewCell getting refreshed while scrolling
问题描述
我有一个带UIWebview的自定义UITableViewCell来显示用户活动中的超链接文本(参见附件图片).UIWebView通常需要一秒钟才能加载HTML数据。此外,在滚动期间,UIWebView将再次刷新,并且需要花费一秒钟,这看起来很奇怪。
我试过
http://snippets.aktagon.com/snippets/358-How- to-make-a-clickable-link-inside-a-NSTextField-and-Cocoa
您还可以尝试 CoreText
,但它带来了编码的开销 drawRect
:
http://www.cocoanetics.com/2011/01/befriending-core-text/
I've a custom UITableViewCell with UIWebview to display the hyperlink text in user's activity (ref. attached image).UIWebView generally takes a sec to load HTML data. Also during scrolling, UIWebView will get refreshed again and it take a sec more, which looks very odd.
I tried FancyLabel, but not able to achieve the same result.
Any help would be appreciated.
Try NSAttributedString
for this problem. Follow the mentioned links :
http://developer.apple.com/library/mac/#qa/qa1487/_index.html http://snippets.aktagon.com/snippets/358-How-to-make-a-clickable-link-inside-a-NSTextField-and-Cocoa
You can also try CoreText
, but it comes with the overhead of coding in drawRect
:
http://www.cocoanetics.com/2011/01/befriending-core-text/
这篇关于UITableViewCell中的UIWebView在滚动时刷新的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!