title: iPhone - UIImagePickerController -> save the image to app folder
body: <p>I have an iPhone application using a <code>UIImagePickerController</code>. As <code>sourceType</code> I have </p>
  
  <ul>
  <li>UIImagePickerControllerSourceTypePhotoLibrary</li>
  <li>UIImagePickerControllerSourceTypeCamera</li>
  <li>UIImagePickerControllerSourceTypeSavedPhotosAlbum</li>
  </ul>
  
  <p>so the user can make a photo or select one from the photo library from the photos or camera photos.</p>
  
  <p>The image will be displayed in a UIImageView. The image should be saved if the user closes the app. So for text fields, I use <code>NSUserDefaults</code>. I know, it is not a good way to save the image inside the NSUSerDefaults with NSData, so I want to save / copy the image to a folder which is controlled by my application similar to the NSUserDefaults.</p>
  
  <p>How can I do this? I want to save it, and then I can write the path to the file into my <code>NSUserDefaults</code> and read it on startup of the application.</p>
  
  <p>Thank you in advance &amp; Best Regards.</p>