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