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