Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find identifier of a photo asset in IOS

I am writing an app which saves a photo stored in a custom album and associates other information with it in an object. The object is then saved in core data. I would like to store a reference to the photo in the object. Is there a unique identifier that is available or can be derived. I need to be able to access the photo. I am using Photos framework.

like image 648
Syed Tariq Avatar asked Sep 10 '25 23:09

Syed Tariq


1 Answers

Keep in mind that localIdentifier's may change when iOS is updated, and in this case whatever value you had saved locally will become useless.

Check this other question for further information.

like image 61
otaviokz Avatar answered Sep 13 '25 12:09

otaviokz