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

Popular posts from this blog

Verilog Error: output or inout port "Q" must be connected to a structural net expression -

jasper reports - How to center align barcode using jasperreports and barcode4j -

c# - ASP.NET MVC - Attaching an entity of type 'MODELNAME' failed because another entity of the same type already has the same primary key value -