title: Problem calling a Local HTML File from XCode
body: <p>Here's my WebView Code:</p>
  
  <pre><code>[webView loadRequest:[NSURLRequest requestWithURL:[NSURL fileURLWithPath:
  [[NSBundle mainBundle] pathForResource:@"index" ofType:@"html"]isDirectory:NO]]];
  </code></pre>
  
  <p>Here's my Error:</p>
  
  <pre><code>*** Terminating app due to uncaught exception 'NSInvalidArgumentException', 
  reason: '*** -[NSURL initFileURLWithPath:isDirectory:]: nil string parameter'
  </code></pre>
  
  <p>Can anyone help? It's saying nil string but the NSURL string is index.html</p>
  
  <p>My only thought is that perhaps the index file isn't stored correctly. It's in the project directory - the same folder as the XCode project file xcodeproj and the info.plist</p>