SDWebImage库不从缓存加载图像

时间:2016-03-10 13:19:39

标签: ios objective-c uiimageview sdwebimage

[cell.userProfileImageView sd_setImageWithURL:[NSURL URLWithString:userObject.profileImage] placeholderImage:[UIImage imageNamed:@"Profile"]];

加载图片后,如果应用程序进入后台然后返回前台,SDWebImage库就不会从缓存中加载图像。

1 个答案:

答案 0 :(得分:0)

为了更有效地执行它,您应该使用AsynchronousImageView https://github.com/nicklockwood/AsyncImageView