xcode 9 UIWebView加载http 报错

xcode9 默认只能加载https协议的网址
报错

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.

解决办法
右击 Infomation Property List —add ROW
xcode 9 UIWebView加载http 报错_第1张图片
然后添加一个 App Transport Security Settings
xcode 9 UIWebView加载http 报错_第2张图片

你可能感兴趣的:(ios)