NSFileManager *mgr = [NSFileManager defaultManager];
NSString *cachePath =
[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject];
[mgr removeItemAtPath:cachePath error:nil];
时间: 2024-09-30 05:12:25
NSFileManager *mgr = [NSFileManager defaultManager];
NSString *cachePath =
[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject];
[mgr removeItemAtPath:cachePath error:nil];