title: How do I create a segue that can be called from a button that is created programmatically?
body: <p>In Swift I have a button created programmaticaly using:</p>
  
  <pre><code>var button = UIBarButtonItem(title: "Tableau", style: .Plain, target: self, action: "tabBarTableauClicked")
  </code></pre>
  
  <p>I want that when the user clicks the button it changes viewControllers.
  Here is the code for <code>tabBarTableauClicked</code>:</p>
  
  <pre><code>func tabBarTableauClicked(){
      performSegueWithIdentifier("tableau", sender: self)
  }
  </code></pre>
  
  <p>But it is obviously not working because there is no segue with an identifier called "tableau".</p>
  
  <p>And I can't create a segue using Ctrl + click the button and drag to the second viewController because the button is created programatically and not in the Storyboard.</p>
  
  <p>How can I create a segue with an identifier programmatically in Swift?</p>