xcode7以上UIWebView报错:
The resource could not be loaded
because the app transport security
policy requires the use of a secure connection
解决方法:
方法1、把App内访问的网络协议由http修改为https。
方法2、在Info.plist中添加
NSAppTransportSecurity
类型
Dictionary
。
在
NSAppTransportSecurity
下添加
NSAllowsArbitraryLoads
类型
Boolean
,值设为
YES