美文网首页
NSURLConnection/CFURLConnection

NSURLConnection/CFURLConnection

作者: 小的小碰撞 | 来源:发表于2018-05-29 15:26 被阅读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

  • 3 SDWebimage
    [self.myImage sd_setImageWithURL:[NSURL URLWithString:url2] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates];
    选用:options:SDWebImageAllowInvalidSSLCertificates 不需要https验证

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

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

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

相关文章

网友评论

      本文标题:NSURLConnection/CFURLConnection

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