// 系统接收到内存警告时候调用!
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
{
SDWebImageManager *mgr = [SDWebImageManagersharedManager];
// 1.取消下载
[mgr cancelAll];
// 2.清除内存中的所有图片
[mgr.imageCache clearMemory];
}
// 系统接收到内存警告时候调用!
- (void)applicationDidReceiveMemoryWarning:(UIApplication *)application
{
SDWebImageManager *mgr = [SDWebImageManagersharedManager];
// 1.取消下载
[mgr cancelAll];
// 2.清除内存中的所有图片
[mgr.imageCache clearMemory];
}