Home > DeveloperSection > Forums > How to get unique id of ALAsset for identification in iOS?
marcel ethan
marcel ethan

Total Post:105

Points:735
Posted on    January-14-2016 4:39 AM

 iPhone iPhone  Ios  Objective C 
Ratings:


 1 Reply(s)
 436  View(s)
Rate this:
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.


Tarun Kumar

Total Post:213

Points:1635
Posted on    January-15-2016 4:42 AM

I 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.


Modified On Jan-15-2016 04:43:59 AM

Don't want to miss updates? Please click the below button!

Follow MindStick