我需要在iOS应用程序中通过UIImageView在https(例如https://ton.twitter.com/1.1/ton/data/dm/433966760199725056/433966760212332544/du3THdSe.png)中显示图像。此图片在浏览器中打开,但在UIImageView的使用这些方法没有显示:https图像不在UIImageView上显示
NSURL *url = [NSURL URLWithString:@"https://ton.twitter.com/1.1/ton/data/dm/433966760199725056/433966760212332544/du3THdSe.png"];
UIImage *image = [UIImage imageWithData:[NSData dataWithContentsOfURL:url]];
imageView.image = image;
或
// using SDWebImage
[imageView setImageWithURL:[NSURL URLWithString:@"https://ton.twitter.com/1.1/ton/data/dm/433966760199725056/433966760212332544/du3THdSe.png"] placeholderImage:nil];
我怎样才能显示此图像?
@徐寅,谢谢。 – Alex