以下内容转自 CrespoXiao的微博

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

ios uiwebview 上几个技巧-LMLPHP

相关的内容地址:

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

05-11 01:28