原因 : 使用sd_setImageWithURL导致内存溢出
[cell.imageView sd_setImageWithURL:[NSURL URLWithString:self.picArr[indexPath.item]]];
解决方法 : 调用清空缓存方法销毁图片内存
-(void)dealloc{
[[SDImageCache sharedImageCache] setValue:nil forKey:@"memCache"];
}
原因 : 使用sd_setImageWithURL导致内存溢出
[cell.imageView sd_setImageWithURL:[NSURL URLWithString:self.picArr[indexPath.item]]];
解决方法 : 调用清空缓存方法销毁图片内存
-(void)dealloc{
[[SDImageCache sharedImageCache] setValue:nil forKey:@"memCache"];
}