ios9以后苹果的AppTransportSecutiry(ATS)强制app使用更安全的Https协议来取代Http。所以会造成图中的报错信息。可以通过更改Info.plist中的配置解决。不过还是应该按照苹果的要求在项目中使用更安全的Https。
如果找不到 AppTransportSecuritySettings选项,可以手动添加Dictionary类型的NSAppTransportSecurity,然后在Dic中添加Boolean类型的NSAllowsArbitraryLoads并设置值为YES。
781

被折叠的 条评论
为什么被折叠?



