I'm facing an issue on an UIWebView. I got a WebView which display an html string. This html string contains :
- Html text
- Local images
- fb:comments
At first i only had Html + local Image so I was using th well known method :
NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
[webview loadHTMLString:htmlString baseURL:baseURL];
Everything worked perfectly. But then i had to implement facebook comments http://developers.facebook.com/docs/reference/plugins/comments/
Since my old BaseURL wasn't working anymore for facebook i tried to load with
NSURL *baseURL = [NSURL URLWithString:@"http://www.facebook.com/"];
This made my facebook work but the local image aren't displayed within the webview, even with absolute path.
Any help would be appreciate. Thanks for your time