将下载数据写入沙盒
// 将文件写入沙盒中(缓存目录) // 缓存文件夹 NSString *caches = [NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES) lastObject]; // 文件路径 NSString *file = [caches stringByAppendingPathComponent:@"minion_15.mp4"]; // 写入数据 [self.fileData writeToFile:file atomically:YES]; self.fileData = nil;