Swift学习笔记(二)Ios9下访问http:

Swift学习笔记(二)Ios9下访问http:,第1张

概述如果你出现 App Transport Security has blocked a cleartext HTTP (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.plist file. 就需要修改info.plist 文本编辑,或xco

如果你出现

App Transport Security has blocked a cleartext http (http://) resource load since it is insecure. Temporary exceptions can be configured via your app's Info.pList file.

就需要修改info.pList
文本编辑,或xcode open as source code
在节点内加入

<key>NSAppTransportSecurity</key><dict>     <key>NSAllowsArbitraryLoads</key>     <true/></dict>
总结

以上是内存溢出为你收集整理的Swift学习笔记(二)Ios9下访问http://全部内容,希望文章能够帮你解决Swift学习笔记(二)Ios9下访问http://所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址:https://www.54852.com/web/1083574.html

(0)
打赏 微信扫一扫微信扫一扫 支付宝扫一扫支付宝扫一扫
上一篇 2022-05-27
下一篇2022-05-27

发表评论

登录后才能评论

评论列表(0条)

    保存