我正在尝试创建一个照片“文件夹”并返回一个指向它的指针。这可能吗?以下是我到目前为止的代码。谢谢。
- (PHCollectionList *) CreatePhotoFolder: (NSString *) folderName
{
[[PHPhotoLibrary sharedPhotoLibrary]
performChanges:^{
// Create the folder
[PHCollectionListChangeRequest creationRequestForCollectionListWithTitle: folderName];
}
completionHandler:^(BOOL success, NSError *error) {
if (!success) { NSLog(@"Error creating Folder: %@", error); }
else {
// How do I return the new PHCollectionList* for the new folder?
}
}
];
}