title: Xamarin iOS camera and photos
body: <p>I am taking a picture with the iOS camera and trying to extract metadata from the image. This is my code:-</p>
  
  <pre><code>partial void BtnCamera_TouchUpInside(UIButton sender)
          {
              UIImagePickerController imagePicker = new UIImagePickerController();
              imagePicker.PrefersStatusBarHidden();
              imagePicker.SourceType = UIImagePickerControllerSourceType.Camera;
  
              // handle saving picture and extracting meta-data from picture //
              imagePicker.FinishedPickingMedia += Handle_FinishedPickingMedia;
  
              // present //
              PresentViewController(imagePicker, true, () =&gt; { });         
          }
  
  
  protected void Handle_FinishedPickingMedia(object sender, UIImagePickerMediaPickedEventArgs e)
          {
              try
              {
                  // determine what was selected, video or image
                  bool isImage = false;
                  switch (e.Info[UIImagePickerController.MediaType].ToString())
                  {
                      case "public.image":
                          isImage = true;
                          break;
                  }
  
                  // get common info 
                  NSUrl referenceURL = e.Info[new NSString("UIImagePickerControllerReferenceURL")] as NSUrl;
                  if (referenceURL != null)
                      Console.WriteLine("Url:" + referenceURL.ToString());
  </code></pre>
  
  <p>I am able to initiate the camera, take the picture and then however when I click 'use photo'... The referenceURL comes back as NULL... How can I get the url, such that to extract GPS coordinates of the photo and such other attributes ? </p>