Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我尝试使用iphone-exif 库,但似乎这不适用于仅 6 或更低版本的 armv7。我是 ios dev 的新手,我很好奇是否有另一种解决方案或方法可以为 armv7 编译它?
我需要一种方法来读取和写入用于定位问题和地理位置的元数据。
谢谢
希望您得到答案,因为这是不久前发布的,但这是我的想法。
您可以使用 CGImageDestinationSetProperties,因为 iOS4 将元数据添加到目标中的图像集。它包括 EXIF、IPTC 和许多其他信息。
查看 Apple 开发网站上的 Image I/O Programming guide 了解更多信息。文档主要参考 OS X,但都适用于 iOS。基本上,您是从文件或数据创建 CGImageRefs,将它们放在某处,然后对其应用属性。