title: Swift UIPickerView Trigger Segue with IBAction
body: <p>I am new to Swift and could use some advice on how to trigger a segue using an IBAction on button click. I'm able to segue using the picker however I want the button to trigger the segue. I tried triggering the function inside the IBAction but that isn't working. Appreciate any advice. Thanks.</p>
  
  <pre><code>func pickerView(pickerView: UIPickerView, didSelectRow row: Int, inComponent component: Int) {
  
      switch (row) {
  
      case 0: self.performSegueWithIdentifier("Segue0", sender: self)
      break;
      case 1: self.performSegueWithIdentifier("Segue1", sender: self)
      break;
      case 2: self.performSegueWithIdentifier("Segue2", sender: self)
      break;
      case 3: self.performSegueWithIdentifier("Segue3", sender: self)
      break;
      case 4: self.performSegueWithIdentifier("Segue4", sender: self)
      break;
      default: break;
  
      }
  </code></pre>
  
  <p>Here's the standard button:</p>
  
  <pre><code>@IBAction func selectButton(sender: AnyObject) {
  
  
  }
  </code></pre>