title: Calling prepareforSegue from a UIButton?
body: <p>I am trying to call a <code>prepareForSegue</code> function out of <code>TableViewController</code> from a button in an <code>UITableViewCell</code>. </p>
  
  <p>Can I just call it from the button? Something like:</p>
  
  <p><em>TableViewcontroller:</em></p>
  
  <pre><code>func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
          if (segue.identifier == "segueExercise") {
              print(segue.identifier)
          let vc = segue.destinationViewController as! DetailViewController
  </code></pre>
  
  <p><em>TableViewCell:</em></p>
  
  <pre><code>@IBAction func exerciseAction(sender: UIButton) {
      ViewController.prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!)
  }
  </code></pre>
  
  <p>Would it be too easy, or am I missing something ?</p>