WKWebView无法在iOS 10及更高版本中加载http图像 [英] WKWebView not loads http image in iOS 10 and above
本文介绍了WKWebView无法在iOS 10及更高版本中加载http图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在 WKWebView
中加载 https
URL,并且其中的少量图像来自 HTTP
URL,启用 HTTP
图像.我阅读了
I am loading a https
URL in WKWebView
and inside that few images are coming from HTTP
URL which is loading perfectly fine on enabling NSAllowsArbitraryLoads
in info.plist
file in iOS 9. But on iOS 10 and above it is not loading the HTTP
images. I read Apple and followed all possible way but no luck.
推荐答案
将以下行添加到 info.plist
,
NSAllowsArbitraryLoadsInWebContent
并将其值设置为 YES
这篇关于WKWebView无法在iOS 10及更高版本中加载http图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文