UIWebView webpage caching for offline viewing

前端 未结 2 1974
北海茫月
北海茫月 2020-12-01 04:40

First of all, I\'m pretty sure that I have checked every answer here and nothing does what I would like to do.

  1. In this question, for answer is given ASIHTTPRe
2条回答
  •  旧时难觅i
    2020-12-01 05:13

    It sounds like the standard caching is not good enough because you have no control over what will be cached and for how long. The easiest way for solving this is by creating your own caching meganism by overriding the NSURLCache. You can find some documentation about that at http://nshipster.com/nsurlcache/ and a sample at http://github.com/evermeer/EVURLCache That sample even let you use a pre populated cache that can be included in your app install.

提交回复
热议问题