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

1 Comment 30th JUN 2009 | Posted by Ivan Kalaica in iPhone dev

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? :-)

If you like what you read, please share it.

  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Yahoo! Bookmarks
  • Reddit
  • Technorati
  • Twitter
  • StumbleUpon
  • LinkedIn
  • Netvibes
  • NewsVine
  • Sphinn
  • Tumblr
  • Posterous

To post code in comments, place your code inside [code] and [/code] tags.

There are 1 comments (Add Yours +)

Leave a Comment

Please wrap all source codes with [code][/code] tags.
Magento Design and Development | Magento SEO | iPhone Application Development Web Application Development with ZEND | WordPress Ecommerce | WordPress development
Sitemap

Inchoo - webappsolutions | 2009