问题
Possible Duplicate:
Access metadata (exif tags) of image taken by UIImagePickerController - iOS/iPhone
How to get image metadata in ios
I have some image file in the iOS application local folder. How can i get it's metadata?
回答1:
You can use the ImageIO Framework like explained in QA1654:
To access the image properties you:
- create a CGImageSourceRef for your image.
- get a copy of the image properties dictionary by calling CGImageSourceCopyPropertiesAtIndex.
- access the values in the dictionary by calling CFDictionaryGetValue with the property key that you are interested in. The available keys are located in the CGImageProperties Reference.
回答2:
You can get its metadata with the ImageIO
framework.
http://developer.apple.com/library/mac/#documentation/graphicsimaging/conceptual/ImageIOGuide/imageio_intro/ikpg_intro.html
来源:https://stackoverflow.com/questions/14292413/is-there-way-to-get-metadata-of-the-image-file-in-ios