Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7746217
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T10:13:18+00:00 2026-06-01T10:13:18+00:00

I have saved photos to my customised album in my app using code [library

  • 0

I have saved photos to my customised album in my app using code

[library saveImage:self.capturedImg toAlbum:@"FunCam" withCompletionBlock:^(NSError *error) {
    if (error!=nil) {
        NSLog(@"Big error: %@", [error description]);
    }
}];

Now I want to retrive all photos saved to that album when user click some button and show them in view like camera app (the default app on iphone) shows

Please help me how can I do that?

Thanks in advance

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T10:13:19+00:00Added an answer on June 1, 2026 at 10:13 am

    Try these methods…

    -(void)loadNewLibraryImages
    {
        self.assetGroups = [[NSMutableArray alloc] init];
        // Group enumerator Block
        dispatch_async(dispatch_get_main_queue(), ^
                       {    
                           void (^assetGroupEnumerator)(struct ALAssetsGroup *, BOOL *) = ^(ALAssetsGroup *group, BOOL *stop) 
                           {
                               if (group == nil) 
                               {
                                   return;
                               }
                               if ([[group valueForProperty:ALAssetsGroupPropertyName] isEqualToString:@"YOUR ALBUM NAME"]) {
                                   [self.assetGroups addObject:group];                             
                                   [self loadImages];
                                   return;
                               }                           
    
                               if (stop) {
                                   return;
                               }
    
                           };
    
                           // Group Enumerator Failure Block
                           void (^assetGroupEnumberatorFailure)(NSError *) = ^(NSError *error) {
    
                               UIAlertView * alert = [[UIAlertView alloc] initWithTitle:@"ERROR" message:[NSString stringWithFormat:@"No Albums Available"] delegate:nil cancelButtonTitle:@"Ok" otherButtonTitles:nil];
                               [alert show];
                               [alert release];
                           };   
    
                           // Enumerate Albums
                           ALAssetsLibrary *library = [[ALAssetsLibrary alloc] init];        
                           [library enumerateGroupsWithTypes:ALAssetsGroupAll
                                                  usingBlock:assetGroupEnumerator 
                                                failureBlock:assetGroupEnumberatorFailure];
    
    
                       });
    
    
    }
    
    -(void)loadImages
    {   
        //for (ALAssetsGroup *assetGroup in self.assetGroups) {
    //  for (int i = 0; i<[self.assetGroups count]; i++) {
    
            ALAssetsGroup *assetGroup = [self.assetGroups objectAtIndex:0];
            NSLog(@"ALBUM NAME:;%@",[assetGroup valueForProperty:ALAssetsGroupPropertyName]);
    
            [assetGroup enumerateAssetsUsingBlock:^(ALAsset *result, NSUInteger index, BOOL *stop) 
             {         
             if(result == nil) 
             {
             return;
             }
                UIImage *img = [UIImage imageWithCGImage:[[result defaultRepresentation] fullScreenImage] scale:1.0 orientation:(UIImageOrientation)[[result valueForProperty:@"ALAssetPropertyOrientation"] intValue]];         
    
             }];  
    
    //  }
    }
    

    hope they will help….

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose, I have saved some permissions in the database by using this code: RoleRepository
I have an open-source app which uploads photos to Facebook. To save bandwidth, the
I have saved data which was saved using NSUserDefaults. I was under the impression
I have saved a dataset in the sql database in an xml column using
using fconnect user have authenticated and i have saved their userid to my database.
I have saved video in to the photo library. -(void)exportVideo:(id)sender { NSString *path =
I have the following code I use to cache photos I load off Flickr
Hi all I have an app now showing photos from URL, not from my
I have a friend who had been using a proprietary photo album product and
I have an app that takes the photos via the camera or select it

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.