How do I access the EXIF info in a picture from the camera taken using the new 4.0/4.1 APIs?
I use captureStillImageAsynchronouslyFromConnection to take the picture and:
[AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageDataSampleBuffer];
to get the jpg data but how do I extract the EXIF?
The doco makes references to imageDataSampleBuffer containing EXIF (I can see it in there if I examine the variable in the console):
"The buffer attachments may contain metadata appropriate to the image data format. For example, a buffer containing JPEG data may carry a kCGImagePropertyExifDictionary as an attachment"
But I can't figure out how to manipulate a CMSampleBufferRef to acces it.
Thanks.