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?