Re: WKWebView does not load images

Steve Christensen

Is /path/to/myImage.gif a full path or a partial path? I ask because you didn't specify a base URL.

Do the path components have the correct case if the image is on a case-sensitive volume?

On Oct 6, 2017, at 7:58 AM, Gerriet M. Denkmann <g@...> wrote:

[ wkWebView loadHTMLString: htmlString baseURL: nil ];

htmlString contains: …<img alt=“alternate” src=“/path/to/myImage.gif” /> ….

WKWebView just shows a rectangle containing: “alternate”.

WebView shows the picture.

Are there any special steps needed to make WKWebView show images?


Join to automatically receive all group messages.