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?
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?
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.