Revert the example to use thumbnail

This commit is contained in:
DreamPiggy 2020-01-10 19:44:35 +08:00
parent d29dfda82a
commit 767ea25525
1 changed files with 1 additions and 2 deletions

View File

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