Quantcast
Channel: Inchoo » Ivan Kalaica
Viewing all articles
Browse latest Browse all 24

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

$
0
0

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


Viewing all articles
Browse latest Browse all 24

Trending Articles