I am working on a mac app project.Using WKWebView's loadHTMLString method,I am able to construct a web page view,it works well except for the image loading part.
For example:
NSString *string1 = @"<img src=\"https://apppie.files.wordpress.com/2014/09/photo-sep-14-7-40-59-pm_small1.jpg\">"
[pWebView loadHTMLString: string1 baseURL: nil];
That works well. But once I change https:
to http:
,the web page is broken, image is not showing anymore. I have checked both urls on Firefox browser,they all go well. I don't understand why this is happening.
And then I try to replace all http:
with https:
,most of images of the web page load properly, but still not all of them.(Again,I double check it in Firefox,all images show up without problem),so I am pretty sure there is something wrong with WKWebView configuration,how can I fix that?Thanks a lot.
My OSX version: 10.11 public beta 5; xCode version: 7.0 beta.