toc*_*oco 5

您可以使用QA1654中解释的ImageIO框架:

要访问图像属性,您:

  1. 为您的图像创建一个CGImageSourceRef.
  2. 通过调用CGImageSourceCopyPropertiesAtIndex获取图像属性字典的副本.
  3. 通过使用您感兴趣的属性键调用CFDictionaryGetValue来访问字典中的值.可用的键位于CGImageProperties Reference中.