title: save html page with the images,javascript and css in one folder in iphone application
body: <p>I want to save webpage in document directory with the images,css and javascripts etc..</p>
  
  <p>I have done below code : But it only generates the html file..</p>
  
  <pre><code>NSURL *url = [NSURL URLWithString:@"http://www.apple.com"];
  NSData *urlData = [NSData dataWithContentsOfURL:url];
  [urlData writeToFile:filePath atomically:YES];
  </code></pre>
  
  <p>Any idea or suggestion is most welcome.</p>
  
  <p>Thanks</p>