tags:

views:

226

answers:

2

i need to get the information of photos like the path of the image, name and so on...in iphone. is there a way to get this programmatically using SDKs done on non jailbroken iphone.

Thanks Satish

+1  A: 

I'm afraid you can't programmatically on a non-jailbroken iPhone. I wouldn't know if you can on a jailbroken phone, but the non-jailbroken phone only lets you pick images with the UIImagePickerController class.

As you probably already know, the UIImagePickerControllerDelegate gives you an UIImage and optionally an NSDictionary with editing info (containing the crop rectangle and the original image). You don't know which image from the library it was (if it wasn't the camera itself).

Saving images is done with UIKit's UIImageWriteToSavedPhotosAlbum method, which only lets you specify the image and a callback method when the image is written. After this method is finished (and the callback is done), you don't know where in the photos album the image is saved.

So unfortunately, the answer basically is: if you want information other than size, then no.

drvdijk
A: 

Thanks. If thats the case then can u tell me the path of the photo album where the all images reside on iphone.

Thanks Satish