0

I'm doing a project to take images from iphone photo library or in other way from camera roll. I have done that without any problem. But i need to retrieve the name from the photo library. Is there a way to do that? Any help is appreciated

Thanks

Kiron
  • 278
  • 5
  • 18

2 Answers2

1

Have a look at ALAssetsLibrary which is available in iOS 4.0 and later.

Also, these links may help

How to get a photo's original filename in iOS?

iPhone: How do I get the file path of an image saved with UIImageWriteToSavedPhotosAlbum()?

Community
  • 1
  • 1
Wang Yandong
  • 136
  • 3
1

If you need the full path, just use this:

ALAsset* asset;   // previously assigned
NSDictionary* pathInfo = [asset valueForProperty:ALAssetPropertyURLs];

This will leave the full URL of the image on your device as the Value member of the pathInfo object.

MobileVet
  • 2,958
  • 2
  • 26
  • 42