Getting image name of iphone photo library

后端 未结 2 947
死守一世寂寞
死守一世寂寞 2021-01-07 15:29

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 th

2条回答
  •  [愿得一人]
    2021-01-07 15:41

    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.

提交回复
热议问题