1.在Info.plist中添加NSAppTransportSecurity类型Dictionary。
![](https://img.haomeiwen.com/i3299157/b196afc5c1bddc2a.png)
2.在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
![](https://img.haomeiwen.com/i3299157/acf70c6debd2b319.png)
![](https://img.haomeiwen.com/i3299157/54ff5b1908e7e146.png)
完成!
1.在Info.plist中添加NSAppTransportSecurity类型Dictionary。
2.在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES
完成!
本文标题:IOS 解决HTTP使用问题
本文链接:https://www.haomeiwen.com/subject/zdhkkxtx.html
网友评论