title: How to get the edited image from UIImagePickerController in Swift?
body: <p>I have seen and read the <a href="https://developer.apple.com/library/ios/documentation/uikit/reference/UIImagePickerControllerDelegate_Protocol/index.html#//apple_ref/occ/intfm/UIImagePickerControllerDelegate/imagePickerController:didFinishPickingMediaWithInfo:" rel="noreferrer">documents of Apple</a> where they have clearly mentioned about the key <a href="https://developer.apple.com/library/ios/documentation/uikit/reference/UIImagePickerControllerDelegate_Protocol/index.html#//apple_ref/doc/constant_group/Editing_Information_Keys" rel="noreferrer">UIImagePickerControllerEditedImage</a>.  But when I am running my following code, I am not getting that key in the Dictionary. What is the reason behind this? </p>
  
  <p>My Code:</p>
  
  <pre><code>func imagePickerController(picker: UIImagePickerController!, didFinishPickingMediaWithInfo info:NSDictionary!)
      {
          println(info)
  
          //var tempImage:UIImage = info[UIImagePickerControllerOriginalImage] as UIImage
          var tempImage:UIImage? = info[UIImagePickerControllerEditedImage] as? UIImage
  
          profileButton.setImage(tempImage, forState: UIControlState(0))
  
          self.dismissViewControllerAnimated(true, completion:nil)
  
      }
  </code></pre>
  
  <p>println(info) prints:</p>
  
  <pre><code>{
      UIImagePickerControllerMediaType = "public.image";
      UIImagePickerControllerOriginalImage = "&lt;UIImage: 0x178295d60&gt; size {960, 960} orientation 0 scale 1.000000";
      UIImagePickerControllerReferenceURL = "assets-library://asset/asset.JPG?id=2DDCE06B-6082-4167-A631-B3DF627055DF&amp;ext=JPG";
  }
  </code></pre>
  
  <p>FYI, I am picking image from Library and I tried from Camera also, but this key is still not coming but the other data about image is coming. And I am using iOS8.0 build SDK.</p>
  
  <p><strong>So how can I use <code>UIImagePickerControllerEditedImage</code>if there is no such key coming in the dictionary.</strong> </p>