title: Unable to pass image taken from camera to another viewcontroller
body: <p>I have a button to take an image . I wish to pass the image taken from camera to another view controller.The code for first viewcontroller is shown below.</p>
  
  <pre><code>    @IBAction func takePhoto(sender: AnyObject)
  {   let picker = UIImagePickerController()
      picker.delegate = self
      picker.sourceType = .Camera
      presentViewController(picker, animated: true,completion : nil)
  
  }
  
  
  func imagePickerController(picker: UIImagePickerController, didFinishPickingMediaWithInfo info: [String : AnyObject])
  {
      TakenImage = info[UIImagePickerControllerOriginalImage] as? UIImage ; dismissViewControllerAnimated(true, completion: nil )
  
  let controller = self.storyboard!.instantiateViewControllerWithIdentifier("NoteDetailViewController") as! NoteDetailViewController
  
      controller.takinPhoto = true
  
      if (note != "")
      {
          controller.content = note
      }
  
      controller.imageFromCamera = TakenImage
  
      if (self.tags != "")
      {
          controller.tagsTextField.text = self.tags
      }
       self.presentViewController(controller, animated: true, completion: nil)
  }
  @IBAction func save(sender: AnyObject)
  {
      UIImageWriteToSavedPhotosAlbum(TakenImage!, self, "image:didFinishSavingWithError:contextInfo:", nil)
  }
  func image(image: UIImage, didFinishSavingWithError error: NSError?, contextInfo:UnsafePointer&lt;Void&gt;)
  {
      if error == nil {
          let ac = UIAlertController(title: "Saved!", message: "Your altered image has been saved to your photos.", preferredStyle: .Alert)
          ac.addAction(UIAlertAction(title: "OK", style: .Default, handler: nil))
          presentViewController(ac, animated: true, completion: nil)
      } else
      {
          let ac = UIAlertController(title: "Save error", message: error?.localizedDescription, preferredStyle: .Alert)
          ac.addAction(UIAlertAction(title: "OK", style: .Default, handler: nil))
          presentViewController(ac, animated: true, completion: nil)
      }
  }
  </code></pre>
  
  <p>The code for my second viewcontroller is shown below</p>
  
  <pre><code>if (takinPhoto == true)
      {
          if (imageFromCamera != nil)
          {
              if let image1 = self.imageFromCamera
              {
                  self.imageView2.image = image1
              }
  
          }
          if (self.content != "")
          {
              self.contentTextField2.text = content
          }
  
      }
  </code></pre>
  
  <p>But image from camera is not appearing in the second viewcontroller.How can I solve this??</p>