Avatar of derftoy
Flag for United States of America asked on

Get the ImageURL of an image after I save it with UIImageWriteToSavedPhotosAlbum

In my application I popup the image picker control with the camera.  When the user takes a picture it returns the Image back to me.  I then call:

void UIImageWriteToSavedPhotosAlbum (
   UIImage  *image,
   id       completionTarget,
   SEL      completionSelector,
   void     *contextInfo

Open in new window

When it complete it finishes with the completion selector with a reference to the image.  I then use that image as the background of my application using a UIImageView.

The problem is that when the save is returned, there doesn't seem to be anything to tell me the ReferenceURL to that image.  I want to take the name of that image and store it, so the next time the user opens up the application, I can set the background to the saved image.

How can I get the RefernceURL of a saved image?

Avatar of undefined
Last Comment

8/22/2022 - Mon
Minh Võ Công

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question

I thought that might be what I needed to do, the example code was perfect... thank you
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes