[headImageView sd_internalSetImageWithURL:[NSURL URLWithString:Logo?Logo:@" "] placeholderImage:kDefaultPhotoImage options:SDWebImageRetryFailed context:nil setImageBlock:^(UIImage * _Nullable image, NSData * _Nullable imageData, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
if (image) {
if (image.images.count > 0) {
headImageView.image = image.images[0];
}else{
headImageView.image = image;
}
}
} progress:^(NSInteger receivedSize, NSInteger expectedSize, NSURL * _Nullable targetURL) {
} completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, SDImageCacheType cacheType, BOOL finished, NSURL * _Nullable imageURL) {
if (image) {
if (image.images.count > 0) {
headImageView.image = image.images[0];
}else{
headImageView.image = image;
}
}
}];
网友评论