How to get Image Filename and Tag images in photo album?

Is there a way to get the image file name and image tag in the photo album?

I use ALAssetsLibraryand still scratch ...

+5
source share
2 answers
ALAssetRepresentation *AssetRepObj = [AssetObj defaultRepresentation];
NSString *FileName = [AssetRepObj filename];
+2
source

You can copy the object ALAssetLibraryto an array (or better to a local database). Make the objects ALAssetto display and give them a tag (depending on the index of the array).

Or else, if you still want to continue image names. You can get them from UIImagePickerControllerReferenceURL. Try the substring function to get the name (hint: this is basically up &ext, you can also get the file extension.)

+3
source

All Articles