0

Possible Duplicate:
How to get a NSDATE from UIImage?

Hi I need to get some informations from an UIImage. For example I need to get the date when the photo has been taken etc. I don't have any idea of how to do that.

Any helps?

Community
  • 1
  • 1
GhzNcl
  • 149
  • 1
  • 4
  • 13

1 Answers1

2

You want to use CGImageSourceRef rather than UIImage, see the CGImageSourceRef documentation. You then use code like

NSDictionary* metadata = (NSDictionary *)CGImageSourceCopyPropertiesAtIndex(source,0,NULL);

to get the meta data. There is a detailed tutorial here.

Vic Smith
  • 3,477
  • 1
  • 18
  • 29
  • I found that in this delegate method - (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info there is all what I need. Thanks for your answer btw. :) – GhzNcl Aug 02 '12 at 19:14