How to save the content in UIWebView for faster loading on next launch?

前端 未结 5 837
臣服心动
臣服心动 2020-11-29 00:14

I know that there are some caching classes introduced in the iphone sdk recently, and there is also a TTURLRequest from three20\'s library that allows you to cache a request

5条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 00:31

    If the page has AJAX already, why not store the JavaScript/HTML in the application bundle to start rather than downloading it on the first launch? Then load the page with the code Corey gave below and let the AJAX handle hitting the network for the updated parts of the page.

提交回复
热议问题