Reputation: 1307
I want to create a photo album in iphone programatically.Is there any way to handle or store the images in oe album Any suggestions?
Thanx in advance.
Upvotes: 0
Views: 1935
Reputation: 31
There is an ALAssetsLibrary method for creating albums (since iOS 5.0):
ALAssetsLibrary* library = [[ALAssetsLibrary alloc] init];
[library addAssetsGroupAlbumWithName:@"my pics" resultBlock:^(ALAssetsGroup *group) {
NSLog(@"adding album:'my pics', success: %s", group.editable ? "yes" : "no");
} failureBlock:^(NSError *error) {
NSLog(@"error adding album");
}];
This creates a folder at the top level of "Albums" in the photos App alongside the Camera Roll.
Upvotes: 3
Reputation: 31722
No, it's not possible with the official SDK,
Check here
here from apple developer community
Creating Photo Albums on iPhone
Upvotes: 1
Reputation: 50697
Without being jailbroken, no. You will need to create them in iPhone or iTunes.
If you are jailbroken, theres a tweak on Cydia.
Programmatically, no.
Upvotes: 0