0

in my app I have migrated from UIWebView to WKWebView. Everything works perfectly but I have a problem with one icon.

This is the icon displayed by UIWebView:

enter image description here

And this is the icon displayed by WKWebView:

enter image description here

The Web site displayed in my webView is optimized for mobile device but the implementation of the site is not my work. My question is: Why there is this difference from UI to WK?

It is because I have to set some settings in WK or this problem depends on the implementation of the web site?

Community
  • 1
  • 1
Phocs
  • 2,430
  • 5
  • 18
  • 35
  • you can use safari's develop menu to inspect the html in the webview and see what the problem is, have a look and see what it has for the icon in the code. if you are using the navigation delegate of the WKWebView make sure you are not blocking the loading of the icon – Scriptable May 30 '16 at 14:49
  • The icon is a file .png as the other icons. I use the NavigationDelegate but I don't know as it is blocking the loading of the icon – Phocs May 30 '16 at 17:46
  • all icons in web site's HTML is declared so: – Phocs May 30 '16 at 17:52
  • what defines the images that are loaded? you must have a CSS class or image that tells the browser to display the search icon? – Scriptable May 30 '16 at 20:12
  • The protocol of web site is "http". – Phocs May 30 '16 at 21:49
  • I have solved the problem changing the prefix of url from "http" to "https". I don't know why but it works – Phocs May 30 '16 at 21:50
  • arbitray loads setting most likely... http://stackoverflow.com/questions/31254725/transport-security-has-blocked-a-cleartext-http – Scriptable May 31 '16 at 08:44

0 Answers0