iOS 接口更换为https后SDWebImage加载图片

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加载图片)