ios 获取沙盒文件夹路径

    //获取沙盒Document文件夹路径
    NSString *documentPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) lastObject];
    NSLog(@"%@",documentPath);
    
    //获取沙盒tmp文件夹
    NSString *tmpPath = NSTemporaryDirectory();
    NSLog(@"%@",tmpPath);
    
    //获取沙盒Library/Caches文件夹
    NSString *Caches = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject];
    NSLog(@"%@",Caches);

 

posted @ 2016-01-15 16:26  —__MOMO__—  阅读(486)  评论(0编辑  收藏  举报