1

I've created webpage and import it to Xcode

The web page contains texts and images

When I load the webpage inside UIWebView the page appear but without Images

The webpage is created by iAd Producer

I've no background in HTML or CSS

1 Answer 1

2

Have you checked the URL? It might be a relative one (e.g. '/img/foo.jpg').

You can add a base URL to your webview in that case:

NSString *path = [[NSBundle mainBundle] bundlePath];
NSURL *baseURL = [NSURL fileURLWithPath:path];
[webView loadHTMLString:htmlString baseURL:baseURL];
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.