Posts

Post not yet marked as solved
4 Replies
0 Views
- (void)createAlbum { [[PHPhotoLibrary sharedPhotoLibrary] performChanges:^{ [PHAssetCollectionChangeRequest creationRequestForAssetCollectionWithTitle:@"AlbumName"]; } completionHandler:^(BOOL success, NSError *error) { if (success) { self.assetCollection = [self getAlbum]; } if (error) { NSLog(@"error"); } }]; } - (PHAssetCollection *)getAlbum { PHFetchResult *topLevelUserCollections = [PHCollectionList fetchTopLevelUserCollectionsWithOptions:nil]; for (PHAssetCollection *collection in topLevelUserCollections) { if ([collection.localizedTitle isEqualToString:@"AlbumName"]) { return collection; } } return nil; }Why don't you try the code like above.I have the same problem as you wrote. But I think the code also can create album.
Post not yet marked as solved
4 Replies
0 Views
Sorry for the late reply.Your understanding about my question is correct.Now I understand unfortunately there isn't any good solution regarding my problem.Anyway thank you for your suggestion for further discussion(Bug report or DTS support).Regards,m.masa
Post not yet marked as solved
4 Replies
0 Views
Hi. eskimo. Thank you for your reply.I'm not using MDM.My application takes picture of QR code. The QR code has SSID and Password.Then my application creates [Wi-Fi configuration profile] and ask users to install it.Thank you.