5
votes

I know how to save an image using standard API calls to the camera roll. I also know that devices without a camera get saved to the Photo Library.

For devices with a camera, how do I save a UIImage to the Photo Library INSTEAD of the camera roll?

4

4 Answers

5
votes

You Should try this method provide by IOS SDK,

UIImageWriteToSavedPhotosAlbum(myImage, nil, nil, nil );
3
votes

The only way I know how to do this is with the UIImageWriteToSavedPhotosAlbum, the quick route is to pass nil to everything but the UIImage parameter.

UIImageWriteToSavedPhotosAlbum(UIImage *image, id completionTarget, SEL completionSelector, void *contextInfo);
1
votes

The photo library is just a placeholder that shows all the pics on your phone, including the camera roll. So, if you deleted a pic from the camera, it would be gone on the photo library. The one in the photo library is not a duplicate; it’s more like a shortcut. Makes perfect sense. It's like a "favorites" folder. It sources it's info from the main folder.

1
votes

This is what you find. the link shows how to store the images in iPhone Gallery. Check out the link: http://sugartin.info/2012/01/10/permanently-download-image-and-fetch-locally-images/