Reading the GPS data from the image returned by the camera in iOS iphone

后端 未结 9 1320
余生分开走
余生分开走 2020-11-29 21:36

I need to get the GPS coordinates of an image taken with the iOS device\'s camera. I do not care about the Camera Roll images, just the image taken with UIImagePickerControl

9条回答
  •  隐瞒了意图╮
    2020-11-29 22:29

    You're not using the image data from the camera in the code you've posted, you've generated a JPEG representation of it, which would essentially discard all the metadata. Use image.CGImage like Caleb suggested.

    Also:

    This is also for a commercial product so I cannot use http://code.google.com/p/iphone-exif/.

    The author quite clearly states that commercial licensing is available.

提交回复
热议问题