用webView 加载网络请求的时候,会报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. 这样的错误提示,
在iOS9 beta中,苹果将原http协议改成了https协议,使用 TLS1.2 SSL加密请求数据。
解决方法:
在info.plist文件中加入:
App Transport Security Settings 这个选项,属性Dictionary ,在这个选项中添加键值对 Allow Arbitrary Loads 值为:YES。
重新运行,即可。