I have created a Image Gallary and getting images from Photo Library. I want to duplicate an image in our photo gallery, but in future can I check if I already imported that image.
Can any one tell me that- Is ALAsset provides any unique id for each images, because I want to compare two images.
Please suggest me any solution.
Thanks for advance.
How to get unique id of ALAsset for identification in iOS?
164814-Jan-2016
Updated on 15-Jan-2016
Tarun Kumar
15-Jan-2016I have also faced the same situation so, I tell you some important points about that:
- whenever we insert a photo into the photo library, photo library create a unique URL for every photos that we insert. that means if we insert any image and delete that image and after we insert that image again, even if it is the same image, photo library provide a new unique URL.
- always remember one thing that there is no straight forward way to find the image is duplicate of previous images of not.
- photo library is not provided the facility to delete the image or asset programmatically from the ipone/ipad photo library.