mercredi 6 mai 2015

How can I restore custom photo albums that I've deleted from the photo app?

I've created an app to take and store pictures in a custom album of my choice using the following code:

// This block of code creates a new album for you
[self.library addAssetsGroupAlbumWithName: albumName

                              resultBlock: ^(ALAssetsGroup *group) {
                                  NSLog(@"Added awesome album:%@", albumName);
                              }

                             failureBlock: ^(NSError *error) {
                                 NSLog(@"Error adding album");
                             }];

Now let's say the custom album is called: "Foo". If I delete "Foo" from the iPhone photo app and then go to take a picture from the app I made to store a picture in the Foo Album, "Foo" is not re-created again when I check the iPhone photo app.

Plot Twist Though!: While debugging, "Foo" is actually still there and storing pictures, but it is not displaying when I re-open the iPhone photo app, "Foo" is no where to be found.

What can I do to make Foo re-appear or re-created again?

Thank you

Aucun commentaire:

Enregistrer un commentaire