清除缓存(删除cache文件夹)
NSArray *cache = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *cachePath = cache[0];
[manager removeItemAtPath:cachePath error:nil];
清除缓存
阅读 73
2023-03-02
清除缓存(删除cache文件夹)
NSArray *cache = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
NSString *cachePath = cache[0];
[manager removeItemAtPath:cachePath error:nil];
相关推荐
精彩评论(0)