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);