标签:
控制台打印:Application 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中添加
<key>NSAppTransportSecurity</key><dict>
<key>NSAllowsArbitraryLoads</key>
<true/></dict>
结果如图
版权声明:本文为博主原创文章,未经博主允许不得转载。
Xcode7 使用NSURLSession发送HTTP请求报错
标签:
原文地址:http://www.cnblogs.com/Free-Thinker/p/4833920.html