Update the Example to use thumbnail decoding

This commit is contained in:
DreamPiggy 2020-01-10 19:30:17 +08:00
parent cd1ae56f5f
commit d29dfda82a
1 changed files with 2 additions and 1 deletions

View File

@ -115,7 +115,8 @@
cell.customTextLabel.text = [NSString stringWithFormat:@"Image #%ld", (long)indexPath.row];
[cell.customImageView sd_setImageWithURL:[NSURL URLWithString:self.objects[indexPath.row]]
placeholderImage:placeholderImage
options:indexPath.row == 0 ? SDWebImageRefreshCached : 0];
options:indexPath.row == 0 ? SDWebImageRefreshCached : 0
context:@{SDWebImageContextImageThumbnailPixelSize : @(CGSizeMake(100, 100))}];
return cell;
}