Wrong03-App Transport Security has blocked a cleartext HTTP (http://) resource load since it is i

iOS创建了UIWebView加载页面时整个页面灰色,不显示内容,debug提示内容为:App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app’s Info.plist file.
解决方法:
在info.plist文件中添加一个字典App Transport Security Settings
key:Allow Arbitrary Loads
value:YES
如图:
这里写图片描述

你可能感兴趣的:(ios,xcode)