tags:

views:

172

answers:

2

When the user selects an image from the picker controller, I'm calling the delegate:

(void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info

in the dictionary info, the value for key UIImagePickerControllerMediaURL is NULL. Am I missing something here?

A: 

Yes the Meta data is not populated in the callback (some were also expecting the geotag / position of the place where the picture was taken , but this is not the case). The fact that you don't get the NSURL sounds logical from Apple perspective : they will not give you the path to the real file (like file:// ....) because this is something that is considered as part of the implementation, not part of the public API : from the client perspective it looks like if apple doesn't want you to known where the picture is store physically on the File system.

yonel
A: 

Running iOS 3.2.1 on an iPad, it seems that my app is able to get the file URL via UIImagePickerControllerMediaURL for image files, even though the documentation seems to say that it only works for movie files.

lucius