title: iPhone: How do I get the file path of an image saved with UIImageWriteToSavedPhotosAlbum()?
body: <p>I'm saving a merged image to the iPhone photo library using:</p>
  
  <pre><code>UIImageWriteToSavedPhotosAlbum(viewImage, self, @selector(savedPhotoImage:didFinishSavingWithError:contextInfo:), nil);
  </code></pre>
  
  <p>And getting the callback using:</p>
  
  <pre><code>- (void) savedPhotoImage:(UIImage*)image didFinishSavingWithError:(NSError *)error contextInfo: (void *)contextInfo { NSLog(@"%@", [error localizedDescription]);
  NSLog(@"info: %@", contextInfo);}
  </code></pre>
  
  <p>What I would like to get is the path for where the image has been saved, so I can add it to an array which will be used to call up a list of saved items elsewhere in the app.</p>
  
  <p>When I load the image using the picker it displays the path info.
  However when I save a created image, I can't find where to pull the saved image path.</p>
  
  <p>I have search about the web, but most examples stop at the callback with a nice message to say the image was saved successfully.
  I would just like to be able to know where it was saved.</p>
  
  <p>I understand one method might be to start defining my own paths, but as the method does that for me, I was just hoping it could tell me where it saved to.</p>