• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Save photo taken by UIImagePickerController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Save photo taken by UIImagePickerController (From: Vavelin Kevin <email@hidden>)

  • Prev by Date: Re: Core Data Multiuser
  • Next by Date: Re: СoreGraphics text drawing performance
  • Previous by thread: Re: Save photo taken by UIImagePickerController
  • Next by thread: How to implement an object whose properties are really dictionary entries.
  • Index(es):
    • Date
    • Thread