title: How can I get a navigation bar button to segue?
body: <p>I have a UINavigationController that points to a UIViewController. In that UIViewController, I want the right button of the navigationitem to be a .Add UIBarButtonItem which segues to another scene called "nextScene".</p>
  
  <p>It's my understanding that I need to have the action be the "performSegueWithidentifier" method if I want to create this segue programmatically. Here is what I have:</p>
  
  <p><code>let plusButton = UIBarButtonItem(barButtonSystemItem: .Add, target: self, action: "<strong>performSegueWithIdentifier:</strong>")<br>
  self.navigationItem.setRightBarButtonItem(plusButton, animated: true) </code></p>
  
  <p>What is the proper syntax for getting to another scene called "nextScene"? How should my performSegueWithidentifier method handle this?</p>
  
  <p>EDIT:
  Getting the following error: unrecognized selector sent to instance ... 2015-08-06 07:57:18.534 ..[...] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[... goToSegue:]: unrecognized selector sent to instance .... </p>
  
  <p>Here is the code I'm using for the segue:</p>
  
  <pre><code>let plusButton = UIBarButtonItem(barButtonSystemItem: .Add, target: self, action: "goToSegue:")`
  
  self.navigationItem.setRightBarButtonItem(plusButton, animated: true) }
  
  func goToSegue() {
      performSegueWithIdentifier("segueName", sender: self)
  }
  </code></pre>