UIImageWriteToSavedPhotosAlbum working... sometimes.

Posted by MegaEduX on Stack Overflow See other posts from Stack Overflow or by MegaEduX
Published on 2010-06-10T19:18:59Z Indexed on 2010/06/10 19:22 UTC
Read the original article Hit count: 193

Hello,

UIImageWriteToSavedPhotosAlbum is only working sometimes. Sometimes it works, sometimes it doesn't, exact same function.

- (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingImage:(UIImage *)image editingInfo:(NSDictionary *)editingInfo {
NSLog(@"Saving image to camera roll...");
UIImageWriteToSavedPhotosAlbum(image, nil, nil, nil);
NSLog(@"Done!"); }

I am using a UIImagePicker controller to get the image that then calls that function.

Sometimes it saves it to the camera roll, other times it simply doesn't.

Anyone has any idea?

Thanks in advance.

© Stack Overflow or respective owner

Related posts about cocoa-touch

Related posts about uiimagepickercontroller