Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Consider using <a href="https://github.com/pokeb/asi-http-request/tree" rel="nofollow noreferrer">ASIHTTPRequest</a>. Check out this <a href="https://stackoverflow.com/questions/6696151/how-to-cache-a-whole-web-page-with-images-in-ios">SO question</a>. </p> <p>Specifically, you might want to look into ASIWebPageRequest:</p> <blockquote> <p>download complete webpages, including external resources like images and stylesheets. Pages of any size can be indefinitely cached, and displayed in a UIWebview / WebView even when you have no network connection.</p> </blockquote> <p>I've also used <a href="http://afnetworking.com/" rel="nofollow noreferrer">AFNetworking</a> for my own personal projects and it's made my life 10x easier. On the <a href="https://github.com/AFNetworking/AFNetworking/wiki/AFNetworking-FAQ" rel="nofollow noreferrer">AFNetworking FAQ</a> page, there's a question regarding caching mechanisms for offline viewing. It mentions that <code>NSURLCache</code> in iOS 5 introduced support for caching to disk for offline use - but only for <code>http</code>. If you need to cache <code>https</code>, consider using <a href="https://github.com/steipete/SDURLCache" rel="nofollow noreferrer">SDURLCache</a>.</p> <p>Here's a short <a href="https://devcenter.heroku.com/articles/ios-network-caching-http-headers" rel="nofollow noreferrer">additional resource</a> in regards to network caching for iOS. Read the section titled <strong><em>iOS network caching</em></strong></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload