SDWebImage有种情况并不需要把self改为weakSelf
看下面代码
- (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. NSString *urlString = @"http://img.hb.aicdn.com/154fc0b70d9693759e9d66861b15e920f7d3d16648e10-9MxqJz_fw658"; [self.imageView sd_setImageWithURL:[NSURL URLWithString:urlString] completed:^(UIImage *image, NSError *error, SDImageCacheType cacheType, NSURL *imageURL) { self.imageView.image = image; }]; }