title: How do I cancel a segue that is connected to an UIButton
body: <p>I'm working on this <a href="http://maybelost.com/2011/10/tutorial-storyboard-in-xcode-4-2-with-navigation-controller-and-tabbar-controller-part1/" rel="noreferrer">tutorial</a>, which shows how to create an app with storyboards. My viewController has two UIButtons and I have connected a segue to those UIButtons. These segues push a new viewController.</p>
  
  <p>Now I am looking for a way to cancel this segue if a certain condition becomes true. When I used the old xib files to create my interface I was able to do something like this: </p>
  
  <pre><code>-(IBAction)sendButton:(id)sender {
    if(TRUE) {
      // STOP !!  
    }
  }
  </code></pre>
  
  <p>This does not work anymore. How can I cancel the push of the new viewController?</p>