Possible Duplicate:
How Do I Get The Correct Latitude and Longitude From An Uploaded iPhone Photo?
I’m making a photo app and would like to know what are my options for working with geotagged photos. I would like to display where a photo has been taken (similar to photos app). Is this possible?
Additionally, I need to know when the picture has been taken. I can capture this info for the pictures that I take myself, but what about the camera roll images?
Yes, it is possible.
You have to use
ALAssetsLibraryto access your camera roll. Then you just enumerate through your photos and asks for location.This will enumerate your assets groups. Next, you pick up a group and enumerate its assets.
Now your
locvariable contains location of the place where the photo was taken. You should check it againstALErrorInvalidPropertybefore use, since some photos might lack this data.You can specify
ALAssetPropertyDateto obtain the date and time of photo creation.