I want to save a photo taken by using my application. Actually i can save it in album created programmatically but it saves the same photo in camera roll also. Is it default or should i make change in my code ? Here how my code looks like
Code:
[self.lib enumerateGroupsWithTypes:ALAssetsGroupAlbum usingBlock:^(ALAssetsGroup *group, BOOL *stop) {
if ([[group valueForProperty:ALAssetsGroupPropertyName] isEqualToString:@"Album_Name"]) {
NSLog(@"ALBUM NAME %@", [group valueForProperty:ALAssetsGroupPropertyName]);
[self.lib saveImage:takenImage toAlbum:@"Album_Name" completion:^(NSURL *assetURL, NSError *error) {
if (assetURL) {
// DO SOMETHING WITH PHOTO
}
} failure:nil];
}
} failureBlock:nil];