【发布时间】:2014-09-30 12:49:53
【问题描述】:
我正在使用以下代码将视频保存到我的 PhotosAlbum:
ALAssetsLibrary *assetLibrary = [[ALAssetsLibrary alloc] init];
[assetLibrary writeVideoAtPathToSavedPhotosAlbum:[NSURL URLWithString:videoPath] completionBlock:^(NSURL *assetURL, NSError *error)
{
NSError *removeError = nil;
[[NSFileManager defaultManager] removeItemAtURL:[NSURL URLWithString:videoPath] error:&removeError];
});
视频进入文件夹 Videos 但我希望它进入具有应用名称的特定文件夹。我怎样才能做到这一点?
【问题讨论】:
-
那么你必须保存在沙盒中
-
在块内尝试 [self addAssetURL:pathUrl toAlbum:folderName withCompletionBlock:completionBlock];
-
在哪里?后?里面?
-
以下答案是否有效
-
没有。它有错误,我仍在努力。
标签: ios video save alassetslibrary photo-gallery