title: perfrmSegueWithIdentifier() not working in swift iOS
body: <p>I don't get what I am doing wrong, I am trying to perform a push segue by an identifier so that I can move to other view-controller when an IF condition gets TRUE</p>
  
  <p>the segue is always performed either I add this method : override func prepareForSegue()</p>
  
  <pre><code>     @IBAction func btnClicked(sender: AnyObject) {
      if(n.isEqualToString("mpc01") &amp;&amp; p.isEqualToString("mpc01"))
                 {
      self.performSegueWithIdentifier("login_to_dashboard", sender: nil)
                 }
                 else{
                  println("no data retrieved")
                  }
      }
   override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject?) {
          if segue.identifier == "login_to_dashboard" {
             // let secondViewController = segue.destinationViewController as VC_dashboard
              println("performed segue")
          }
          else{
          println("recieved other command")
          }
      }
  </code></pre>
  
  <p>my ViewController storyboard ID : SID_login</p>
  
  <p>my SecondViewController storyboard ID : SID_dashboard</p>
  
  <p>my Push Segue ID : login_to_dashboard</p>
  
  <p>I want to perform segue by its ID only , not directly</p>