I would like to display an image in html which is being displayed on a UIWebView
from the App's Document directory.
Can someone suggest me how to accomplish that?
I would like to display an image in html which is being displayed on a UIWebView
from the App's Document directory.
Can someone suggest me how to accomplish that?
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
[webView loadHTMLString:htmlString baseURL:baseURL];
You can then refer to your images like this:
<img src="myimage.png">