美文网首页
IOS 解决HTTP使用问题

IOS 解决HTTP使用问题

作者: 向前Hell | 来源:发表于2017-07-18 22:19 被阅读0次

1.在Info.plist中添加NSAppTransportSecurity类型Dictionary。

添加NSAppTransportSecurity.png

2.在NSAppTransportSecurity下添加NSAllowsArbitraryLoads类型Boolean,值设为YES

在图1红箭头处右键选择Add Row.png 添加NSAllowsArbitraryLoads.png

完成!

相关文章

网友评论

      本文标题:IOS 解决HTTP使用问题

      本文链接:https://www.haomeiwen.com/subject/zdhkkxtx.html