Is there way to get metadata of the image file in iOS? [duplicate]

扶醉桌前 提交于 2019-12-04 17:04:44

You can use the ImageIO Framework like explained in QA1654:

To access the image properties you:

  1. create a CGImageSourceRef for your image.
  2. get a copy of the image properties dictionary by calling CGImageSourceCopyPropertiesAtIndex.
  3. 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.
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!