Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
1
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];
 
As I understand it, albums are really just filters for the camera roll. I noticed that when using some Sony software. Deleting images from an album also does not delete from the roll. So it does not look like you have any control over that. I'd like to be wrong on this.
 
As I understand it, albums are really just filters for the camera roll. I noticed that when using some Sony software. Deleting images from an album also does not delete from the roll. So it does not look like you have any control over that. I'd like to be wrong on this.
After making research it seem it is exactly how you said.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.