Xcode: SDWebImage clear cache for single image

前端 未结 2 759
感情败类
感情败类 2021-02-19 05:00

I\'m using SDWebImage to asynchronous image downloader with cache support.

It\'s working perfectly except that sometimes the image got updated on the server with same na

2条回答
  •  广开言路
    2021-02-19 05:17

    #import "SDImageCache.h"
    
    ....
    
    [[SDImageCache sharedImageCache] removeImageForKey:@"http://domain.com/image.jpg" fromDisk:YES];
    

提交回复
热议问题