简体   繁体   中英

How to save images only custom album in iphone photlibrary?

I have one doubt, Is it possible to save the image only on custom album not in savedphotosalbum in iPhone photolibrary. Because this guy told every image must be stored on camera roll or saved photos album default. That link is below,

Saving image to custom album only

Guys can you give some suggestion or new idea to store the image only custom album name.

If any one give I really appreciate to you.

As far as I know this isn't possible, all images appear both in the camera roll and in the album you save them to. If you still insist on the images not appearing in the camera roll you can create and manage your own gallery within the app (using Core Data for instance). I really wouldn't recommend this as there's a lot of overhead in maintaining such a gallery (speaking from experience).

try this:

    ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];

    [library saveImage:image toAlbum:@"Your Album" withCompletionBlock:^(NSError *error) {
            if (error!=nil) {
                NSLog(@"Big error: %@", [error description]);
            }
        }];

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM