Update the demo to remove the usage of `SDWebImageRefreshCached`

This commit is contained in:
DreamPiggy 2021-03-09 14:33:00 +08:00
parent ee1115f0bb
commit 351e76b2b9
1 changed files with 1 additions and 1 deletions

View File

@ -113,7 +113,7 @@
__weak SDAnimatedImageView *imageView = cell.customImageView; __weak SDAnimatedImageView *imageView = cell.customImageView;
[imageView sd_setImageWithURL:[NSURL URLWithString:self.objects[indexPath.row]] [imageView sd_setImageWithURL:[NSURL URLWithString:self.objects[indexPath.row]]
placeholderImage:placeholderImage placeholderImage:placeholderImage
options:indexPath.row == 0 ? SDWebImageRefreshCached : 0 options:0
context:@{SDWebImageContextImageThumbnailPixelSize : @(CGSizeMake(180, 120))} context:@{SDWebImageContextImageThumbnailPixelSize : @(CGSizeMake(180, 120))}
progress:nil progress:nil
completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) { completed:^(UIImage * _Nullable image, NSError * _Nullable error, SDImageCacheType cacheType, NSURL * _Nullable imageURL) {