简体   繁体   中英

SDWebImage clear cache for image while scrolling?

Can anyone please enlighten me how to clear cache while scrolling through images? im using SDwebImage package.It is working till 110 photos after that it giving memory receive warning and getting crash i have tried following method also but no success:

SDImageCache *imageCache = [SDImageCache sharedImageCache];

[imageCache clearMemory]; [imageCache clearDisk]; [imageCache cleanDisk];``

after this code it scroll 10 more photo after that get crash.

try [imageCache release]; or autorelease while initiating or try writing in

-(void)dealloc
{
   [super dealloc];  
  [imageCache release];
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM