Is there a way to get the image file name and tag of images in the photo album?
I'm using ALAssetsLibrary
and still scratching...
You can copy the ALAssetLibrary
object into an array (or better in a Local DB). Make objects of ALAsset
to display and give them tag (depending on array index).
Or otherwise if you still wish to continue with the Image names. you can obtain them from the UIImagePickerControllerReferenceURL
. Try the substring function to get the name (hint: mostly it is before the &ext
, also you can get the extension of file.)
ALAssetRepresentation *AssetRepObj = [AssetObj defaultRepresentation];
NSString *FileName = [AssetRepObj filename];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With