title: Passing Image to another View Controller (Swift)
body: <p>I'm trying to move a user uploaded image from one <em>UIImageView</em> to another <em>UIImageView</em> on a different View Controller. I'm able to have the user upload an image and have it saved in the first <em>UIImageView</em> but after they press the "Post" button, the UIImageView on the next view controller remains blank.</p>
  
  <p>Note: browsingImage is the name of the UIImageView on the second view controller (destination UIImageView)</p>
  
  <p>Any help would be greatly appreciated!</p>
  
  <pre><code>@IBAction func cameraButton(sender: AnyObject) {
  
      addNewPicture()
  
  }
  
  
  func addNewPicture() {
  
      let picker = UIImagePickerController()
      picker.allowsEditing = true
      picker.delegate = self
  
      presentViewController(picker, animated: true, completion: nil)
  }
  
  func imagePickerController(picker: UIImagePickerController, didFinishPickingImage image: UIImage!, editingInfo: [NSObject : AnyObject]!) {
  
      postingImage.image = image
      self.dismissViewControllerAnimated(true, completion: nil)
  
  }
  
  @IBAction func postButton(sender: AnyObject) {
  
      performSegueWithIdentifier("toBrowsePage", sender: nil)
  
  
  }
  
  override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
  
      if segue.identifier == "toBrowsePage" {
  
  
          var itemToAdd = segue.destinationViewController as! ListPage
  
          itemToAdd.postingImage.image = browsingImage.image
  
      }
  
  }
  </code></pre>