iOS开发之清除缓存

NSFileManager *mgr = [NSFileManager defaultManager];

NSString *cachePath =

[NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject];

[mgr removeItemAtPath:cachePath error:nil];

posted @ 2015-08-31 20:31  Ray_hok  阅读(151)  评论(0编辑  收藏  举报