title: Save HTML, CSS + Images for offline usage
body: <p>My iOS app needs to work completely offline if the user downloads all the data. Some views are mobile websites, so all I do when a user views a website online is download the URL from the database and display that in a UIWebView.
  However when the user decides to download all the data for offline usage I need to display that webpage offline. </p>
  
  <p>I tried</p>
  
  <pre><code>NSData *myPagedata = [NSData dataWithContentsOfURL:[NSURL URLWithString:@"http://www.domain.nl/"]];
  </code></pre>
  
  <p>and then display that data in an UIWebView</p>
  
  <pre><code>[_webView loadData:myPagedata MIMEType:@"text/html" textEncodingName:@"UTF-8" baseURL:nil];
  </code></pre>
  
  <p>But that doesnt save CSS and images.</p>
  
  <p>I also found out that <a href="http://allseeing-i.com/ASIHTTPRequest/ASIWebPageRequest" rel="nofollow">ASIWebPageRequest</a> can do this but thats a dead project. Does anybody know how I can display a webpage offline with CSS and images?</p>