Exif 和 iPhone 文件
我正在使用一个库从谷歌代码中提取 EXIF 数据。 我假设在 iPhone OS 3 中您可以使用 UIImagepicker 来完成此操作。
我只是希望能够从图像中提取光圈值、快门速度和 ISO 数据。 我想丢弃图像并仅使用我存储的信息。
我最终会提取 viewcontroller.m 或 h 中的标签数据吗? 这部分编码似乎让我有点困惑,我不知道该把什么放在哪里。 有人可以帮我吗?我还没有完全理解 XCode。
Im using a library for extracting EXIF data from google code.
I assume with iPhone OS 3 that you can use UIImagepicker to do it.
I just want to be able to extract the f-Stop, Shutter Speed and ISO data from the image.
I want to discard the image and just use the information that I store up.
Would I end up extracting the tag data in the viewcontroller.m or h?
This part of coding seems to baffle me a little bit and I cant figure out what to put where.
Can anyone help me out? I still havent figured out XCode all that well.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
无论您拥有什么可执行代码,都需要放入 .m(im 实现)文件中,而不是 .h(h 头文件)中。标头仅用于声明类、协议和方法等内容,而不用于任何实际处理工作。
Whatever executable code you have needs to go in a .m (implementation) file, not a .h (header file). The headers are just for declaring things like classes, protocols, and methods, not for any real processing work.
您知道有哪些教程可以逐步解释如何使用 exif 吗?
我使用的是这里找到的 -
http ://iphone-land.blogspot.com/2008/06/geo-tagging-images-using-iphone-exif.html
但是,对于像我这样的新手来说,这并不是那么彻底,因为我想出了错误,我不知道如何解决它们。
我想我只是对这一切感到害羞。需要一个好的起点
Are there any tutorials that you know of that explain using exif step by step?
im using the one found here -
http://iphone-land.blogspot.com/2008/06/geo-tagging-images-using-iphone-exif.html
However, for a newbie like me, its not all that thorough because im coming up with errors and i am not sure how to resolve them.
I guess im just shy in all this. need a good place to start
如果您通过 UIImagePickerController 获取图像元数据,由于此问题中描述的问题,您可能会在访问图像元数据时遇到困难: UIImagePickerController 并从现有照片中提取 EXIF 数据
You will likely have trouble getting access to an images metadata if you get it via UIImagePickerController, due to the issues described in this question: UIImagePickerController and extracting EXIF data from existing photos