How to save UIImage into iPhone’s saved photos album?

This is quite simple, infact it is one row code like everything else in iPhone development. Well, not everything is “quite” simple as this but most of stuff is “quite” easy to implement. Enough with “quite” ! Here is really simple code;

UIImage *myImage = [UIImage imageNamed:@"me.png"];
UIImageWriteToSavedPhotosAlbum(myImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
// And if you wish add this selector method in code;
- (void) image:(UIImage*)image didFinishSavingWithError:(NSError *)error contextInfo:(NSDictionary*)info;

That’s all you have to add! Quite simple, is it? 🙂

You made it all the way down here so you must have enjoyed this post! You may also like:

May 26, 2014

Show product thumbnail in grids

/ Leave a comment
Adding product image lightbox effect using jQuery plugin (a better way) Oct 08, 2012

Adding product image lightbox effect using jQuery plugin (a better way)

/ Leave a comment
Jun 03, 2012

Apple push notifications from Magento

/ Leave a comment


  1. Thank you so much for the code snippet. It was really helpful.

    One small question, how can we know the status of it? Whether it is success or not?

  2. Thank you for this post! I have a question though.
    I put the code into my button action:
    – (IBAction)savePhotoSignature:(id)sender {

    UIImage *myImage = [UIImage imageNamed:@”me.png”];
    UIImageWriteToSavedPhotosAlbum(myImage, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);

    And I can’t find the image anywhere. Am I doing something wrong?

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.