1

I use UIImageWriteToSavedPhotosAlbum to save a photo to the Photo Library:

UIImageWriteToSavedPhotosAlbum(my_img, nil, nil, nil);

And on completion I want to get the PHAsset of this photo in order to change its creationDate. How can I get this PHAsset?

I have read Get PHAsset/localIdentifier of image saved to photo library, but it doesn't seem to help. Thanks in advance.

mczmma
  • 119
  • 1
  • 10
  • Note that SO is not a code writing service. Please edit your question and show what you have tried and the issues you are facing. – Leo Dabus Feb 04 '22 at 04:57
  • Dear @LeoDabus , I have absolutely no idea how to get this PHAsset, what code can I write? – mczmma Feb 04 '22 at 08:18
  • @mczmma - can you confirm your image is being saved to the Photos Library ? Maybe you can start by sharing the code you wrote to save the photo and maybe someone can assist from there. – Shawn Frank Feb 05 '22 at 16:47

0 Answers0