title: UIImageView is not showing image selected via UIIMagePickerController
body: <p>I am trying to select an image using the UIImagePickerController . I have the following code in which there is one IBOutlet of UIImageView.</p>
  
  <p>After selecting the image in didFinishPickingMediaWithInfo I get the image in memory but somehow it is not visible in the imageview. I did try to change a static image in didFinishPickingMediaWithInfo for imageview but it didn't show the image either. The code is as below,</p>
  
  <pre><code>class SnapshotViewController: UIViewController,UINavigationControllerDelegate, UIImagePickerControllerDelegate
  {
      @IBOutlet var imageView: UIImageView!
      @IBAction func takePhoto(sender: AnyObject) {
        let imagePicker = UIImagePickerController()
          imagePicker.delegate = self
          imagePicker.sourceType = .PhotoLibrary
          imagePicker.allowsEditing = false
          presentViewController(imagePicker, animated: true, completion: nil)
      }
  
  
      func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject]) {
  
          dismissViewControllerAnimated(true, completion: nil)
          dispatch_async(dispatch_get_main_queue())
          {
              let image = info[UIImagePickerControllerOriginalImage] as? UIImage
              self.imageView.image = image
          }
      }
  }
  </code></pre>
  
  <p>I guess this is general problem that whatever image i am changing for this imageView in didFinishPickingMediaWithInfo is not working. If i change the imageView image in viewDidLoad then it works.
  Can anyone please help as i need to show the image selected via photo library?</p>