title: UIImagePickerControllerMediaURL always nil for a photo
body: <p>I am having trouble getting the image URL for a photo that my app takes using a <code>UIImagePickerController</code>. If a video is captured, the dictionary object returned in <code>didFinishPickingMediaWithInfo</code> contains a <code>UIImagePickerControllerMediaURL</code> value which points to the video file.</p>
  
  <p>If i take a photo, the dictionary object does not contain a <code>UIImagePickerControllerMediaURL</code> value, or a <code>UIImagePickerControllerReferenceURL</code> value.</p>
  
  <p>Googling around has thrown up different things, which i have tried without success, including:</p>
  
  <ul>
  <li>Set allowsEditing to YES (also tried NO)</li>
  <li>Dismiss the modal image picker before accessing the info dictionary.</li>
  <li>Casting the info objectForKey for the ....<code>MediaURL</code> to an <code>NSURL</code>. Failed as it was <code>nil</code>.</li>
  <li>Set the mediaTypes on the image picker to include <code>(NSString*)</code> <code>kUTTypeImage</code> and <code>(NSString*)</code> <code>kUTTypeMovie</code>.</li>
  </ul>
  
  <p>But the info dictionary never contains a URL to the image. Any ideas?</p>