title: Thread error in IBAction while overriding prepareForSegue function
body: <p>I'm getting a thread error <code>Thread 1: Breakpoint 1.1</code> in my <code>IBAction</code> function. The code runs without error, but when I click the button on the simulator, the simulator crashes and produces the breakpoint error. The affected code is:</p>
  
  <pre><code>@IBAction override func prepareForSegue(segue: UIStoryboardSegue, sender: AnyObject!) {
      if testoEsercizio.text == "Per iniziare premi la tv" {
          var viewController : SecondoSchermo = segue.destinationViewController as SecondoSchermo
          viewController.stringaponte = "SI buono"
      } else {
          var viewController : SecondoSchermo = segue.destinationViewController as SecondoSchermo
          viewController.stringaponte = "NON buono"
      }  
  }
  </code></pre>