ios uiwebview 上几个技巧

以下内容转自 CrespoXiao的微博

分享个tips,阅读类app内容加载一般是本地存几个html框架,接口传body过来就行了,目的是节省流量。但是loadHTMLString在内容多尤其是图片多的时候加载渲染起来是很慢的,换成如图所示的方法,速度杠杠滴。这里有几个讨论

技术分享

相关的内容地址:

http://stackoverflow.com/questions/13564908/why-uiwebview-work-so-slowly-when-loadhtmlstring-with-uiwebview

http://iphonedevsdk.com/forum/iphone-sdk-development/23481-why-the-load-delay-with-a-uiwebview-and-local-text.html

http://stackoverflow.com/questions/5630644/difference-between-the-uiwebview-methods-loadhtmlstring-and-loadrequest

 

郑重声明:本站内容如果来自互联网及其他传播媒体,其版权均属原媒体及文章作者所有。转载目的在于传递更多信息及用于网络分享,并不代表本站赞同其观点和对其真实性负责,也不构成任何其他建议。