iOS http请求不能用的解决办法

解决方法: 在Info.plist中添加NSAppTransportSecurity类型Dictionary。 在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES 在项目配置文件info.plist中添加App Transport Security Settings字典dictionary。在其下添加属性名为Allow
相关文章
相关标签/搜索