当用户像这样登录时,我缓存了一个图像:
这是在一个Utility.m
UIImage *image = [UIImage imageWithData:newProfilePictureData];
UIImage *mediumImage = [image thumbnailImage:280 transparentBorder:0 cornerRadius:0 interpolationQuality:kCGInterpolationHigh];
UIImage *smallRoundedImage = [image thumbnailImage:64 transparentBorder:0 cornerRadius:9 interpolationQuality:kCGInterpolationLow];
NSData *mediumImageData = UIImageJPEGRepresentation(mediumImage, 0.5); // using JPEG for larger pictures
NSData *smallRoundedImageData = UIImagePNGRepresentation(smallRoundedImage);
稍后我想将小图像加载到UIImageView
:
这是在UITableView
-cellForRowAtIndexPath
[cell.leftIcon setImage:
有谁知道我如何引用缓存的图像?