UIWebView in UITableViewCell getting refreshed while scrolling

核能气质少年 提交于 2019-12-09 14:12:52

问题


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.


回答1:


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/



来源:https://stackoverflow.com/questions/12841924/uiwebview-in-uitableviewcell-getting-refreshed-while-scrolling

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