- UIImageView *imageView = [[UIImageView alloc] initWithFrame:self.view.bounds];
- [imageView sd_setImageWithURL:[NSURL URLWithString:@"https://192.168.1.189/zlm/upload/zlc/iOSAppContractImage/1484275750873.jpg"] placeholderImage:nil options:SDWebImageAllowInvalidSSLCertificates]; // 主要是这个参数
- [self.view addSubview:imageView];
iOS 接口更换为https后SDWebImage加载图片
本文介绍如何使用UIImageView结合SDWebImage库加载包含不安全证书的HTTPS远程图片资源,并展示了具体的代码实现。

被折叠的 条评论
为什么被折叠?



