title: UIWebView display locally stored website (HTML, images, Javascript)
body: <p>I've looked EVERYWHERE for this, can't find anything. I basically need to store an entire website inside of my iPhone for some interesting reasons. Regardless I can't figure out how to display it correctly in my UIWebView.</p>
  
  <p>EDIT: I should clarify, I can load the original HTML file, and I have chagned all of the pathing to be local, except nothing gets linked in.</p>
  
  <p>Here is the code</p>
  
  <pre><code>self.dataDetectorTypes = UIDataDetectorTypeLink;
  NSString *path = [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"];
  NSURL *url = [NSURL fileURLWithPath:path];
  NSURLRequest *request = [NSURLRequest requestWithURL:url];
  [self loadRequest:request];
  </code></pre>
  
  <p>index.html has a bunch of <code>&lt;script type="text/javascript" src="somescript.js"&gt;</code></p>
  
  <p>None of the JS code gets executed</p>