ios - UIWebView with local HTML file not showing image -
I created a webpage and imported it into xcode
There are texts and images in the web page < /
When I load the webpage inside UIWebView, the page appears but without the images
the web page is created by the IAd creator
I have HTML or CSS does not have a background
Did you check the URL? It can be a relative (like '/img/foo.jpg').
You can add the original URL to your webview in this situation:
NSString * path = [[NSBundle main bundle] bundle path]; NSURL * baseURL = [NSUr file URLWithPath: Path]; [WebView Load HTML String: htmlString baseURL: baseURL];
Comments
Post a Comment