[英]SDWebImage clear cache for image while scrolling?
任何人都可以请教我如何在滚动图像时清除缓存? 即时通讯使用SDwebImage包。它正在工作,直到110照片后,它给内存接收警告和崩溃我尝试了以下方法,但没有成功:
SDImageCache *imageCache = [SDImageCache sharedImageCache];
[imageCache clearMemory]; [imageCache clearDisk]; [imageCache cleanDisk];``
在此代码之后,它会在崩溃后再滚动10张照片。
试试[imageCache release]; 或者在启动或尝试写入时自动释放
-(void)dealloc
{
[super dealloc];
[imageCache release];
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.