Images not showing in device for Web view in iphone
<p>I am working on one application. I stuck with one problem. I have HTML page and some images are in Resource Directory. Whenever i run the application on Simulator it works perfectly fine. But when i run the application on the device the image are not displaying but text is displaying only and instead of image Question mark is showing.</p>

<p><strong>Code:</strong>
      NSString *path = [[NSBundle mainBundle]  pathForResource:@"test1" ofType:@"html"];
    NSFileHandle *readHandle = [NSFileHandle   fileHandleForReadingAtPath:path];</p>

<pre><code>NSString *htmlString = [[NSString alloc] initWithData: [readHandlereadDataToEndOfFile]encoding:NSUTF8StringEncoding];
 NSURL *baseurl = [NSURL fileURLWithPath:path];
[self.webView loadHTMLString:htmlString baseURL:baseurl];
</code></pre>

<p><strong>HTML Code:</strong></p>

<pre><code>  &lt;img src="mainGrid.png"&gt;
</code></pre>
