I'm trying to create a Photo "folder" and return a pointer to it. Is this possible? Below is the code I have so far. Thanks.
- (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?
}
}
];
}