1、UIImageView *imageView = [UIImageView new];
2、imageView.tintColor = UIColor.whiteColor;
3、 [imageView sd_setImageWithURL:[NSURL URLWithString:coverIcon] completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {
imageView.image = [image imageWithRenderingMode:UIImageRenderingModeAlwaysTemplate];
}];
网友评论