From d29dfda82a90981b630e1e30f862d21f6596998f Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 10 Jan 2020 19:30:17 +0800 Subject: [PATCH] Update the Example to use thumbnail decoding --- Examples/SDWebImage Demo/MasterViewController.m | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Examples/SDWebImage Demo/MasterViewController.m b/Examples/SDWebImage Demo/MasterViewController.m index 3a6c1780..d05b3c6d 100644 --- a/Examples/SDWebImage Demo/MasterViewController.m +++ b/Examples/SDWebImage Demo/MasterViewController.m @@ -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; }