- 1 UIWebView 加载https 站点出现
- 2 AFNetworking
链接1
链接2
other
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>
网友评论