Tutorial: Easily Create A Custom Photo Album And Add Images In iOS 5

In iOS 5 it is possible to create a custom photo album specifically for your app, and save images inside.

While no specific method has been added to the ALAssetsLibrary framework to allow you to easily save or access a custom photo album Marin Todorov has created a category extending the assets library framework so you can very quickly and easily perform just this function.

Here’s the header for the category:

-(void)saveImage:(UIImage*)image
         toAlbum:(NSString*)albumName
withCompletionBlock:(SaveImageCompletion)completionBlock;

Marin’s also created a straightforward tutorial, and example demonstrating how to use the category.

You can find them on his website here.

Site Updates:

I’ve added this tutorial to the iOS 5 programming tutorials page, and added a separate page for iOS Core Image tutorials. Several more tutorials are being tested and will be added shortly. You can submit iOS 5 tutorials here.

©2011 iPhone, iOS 5, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail


Leave a Reply

Your email address will not be published. Required fields are marked *