IOS10.11 无法访问http的问题解决办法

IOS10.11 无法访问http的问题解

Xcode  Version 7.3.1 (7D1014)

IOS9 之后更新了htpps的访问限制,网上很多文章说 往plist 文件中添加 

NSAppTransportSecurity的字典

NSAppTransportSecurity

往上面字典中添加

NSallowsArbitaryLoads  Boolean   YES

NSAllowsArbitraryLoads

但是实际上操作添加了也没用。困惑了半天。

最后发现,现在的版本,按照以下操作是可以的。

添加NSAppTransportSecurity的字典
会自动变成  AppTransportSecurity
再添加 allow Arbitary Loads  Boolean   YES

感谢阅读,希望能帮助到大家,谢谢大家对本站的支持!