title: How to pass data to another ViewController without using a button in swift
body: <p>I currently have this Swift code which does not pass the <code>int</code> value that is stored in score into <code>currentScore</code> and <code>higherScore</code> into <code>highScore</code>.  Both <code>currentScore</code> and <code>highScore</code> are both instantiated on <code>GameOverViewController</code>.</p>
  
  <pre><code>override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
      if segue.identifier == "GameOverVC" {
          let svc: GameOverViewController = segue.destinationViewController as! GameOverViewController
          score = svc.currentScore
          higherScore = svc.highScore
      }
  }
  </code></pre>
  
  <p>I am currently using the storyboard to push to the next view.  Here is the push code.</p>
  
  <pre><code>if let resultController = self.storyboard?.instantiateViewControllerWithIdentifier("GameOverVC") as? GameOverViewController {
      self.presentViewController(resultController, animated: true, completion: nil)
  }
  </code></pre>
  
  <p>All the code compiles fine, so do I need to have a actual <code>UIButton</code> or is there something else I need to add into the method or into <code>GameOverViewCotroller</code>?</p>