如何从使用新的4.0 / 4.1 API拍摄的照片中访问EXIF信息?
我使用_captureStillImageAsynchronouslyFromConnection_
获取照片,并且:
[AVCaptureStillImageOutput jpegStillImageNSDataRepresentation:imageDataSampleBuffer];
如何获取jpg数据,但是如何提取EXIF信息呢?
文档中提到imageDataSampleBuffer
包含EXIF信息(如果我在控制台检查变量,可以看到它):
"附件缓冲区可能包含适用于图像数据格式的元数据。例如,包含JPEG数据的缓冲区可能作为附件携带kCGImagePropertyExifDictionary
。"
但我无法弄清楚如何操作CMSampleBufferRef来访问它。
谢谢。