Re: Save photo taken by UIImagePickerController
Re: Save photo taken by UIImagePickerController
- Subject: Re: Save photo taken by UIImagePickerController
- From: David Duncan <email@hidden>
- Date: Wed, 18 Jul 2012 10:40:59 -0700
On Jul 11, 2012, at 5:18 AM, Vavelin Kevin <email@hidden> wrote:
> - (void) imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info
> {
>
> UIImage *image = [info objectForKey:@"UIImagePickerControllerOriginalImage"];
This may not be a problem (due to particular conventions we tend to keep) but why are you using a constant string here instead of the actual constant provided by the framework? There is no guarantee that the value of UIImagePickerControllerOriginalImage is the same as @"UIImagePickerControllerOriginalImage", and if that happens to be the case here then your image will always be nil.
>
> UIImageWriteToSavedPhotosAlbum(image, self, @selector(image:didFinishSavingWithError:contextInfo:), nil);
>
> }
--
David Duncan
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden