NSURLConnection/CFURLConnection

2018-05-29  本文已影响0人  小的小碰撞

https://www.itstrike.cn/Question/005019d0-52ad-4ea8-b98e-e41ca4b5042d.html

https://blog.csdn.net/syg90178aw/article/details/52839103

https://github.com/ChenYilong/iOS9AdaptationTips

NSURLSession/NSURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -9802)

打开info.plist,用xml方式打开后,加入下面的代码:

<key>NSAppTransportSecurity</key>  
<dict>  
   <key>NSAllowsArbitraryLoads</key>  
   <true/>  
</dict> 
上一篇 下一篇

猜你喜欢

热点阅读