PHAssetResource *resource = [[PHAssetResource assetResourcesForAsset:set] firstObject]; PHAssetResourceManager *manager = [PHAssetResourceManager defaultManager]; [manager writeDataForAssetResource:resource toFile:url options:nil completionHandler:^(NSError * _Nullable error) { if (error) { NSLog(@"失败"); }else{ NSLog(@"成功"); } }];
网友评论