title: shouldPerformSegueWithIdentifier called before checking other method issue
body: <p>I'm trying to make a segue but I've a small issue which is that I'm clicking on a button and if the boolean is YES it will return YES in segue else return NO but everytime I have to click twice to check the textfield because it is passing first to <code>shouldPerformSegueWithIdentifier</code> while it should check the IBAction first.</p>
  
  <p>Please how I can I fix this issue?</p>
  
  <pre><code>- (IBAction)search:(id)sender{
  
  if ([_txtfld.text isEqual:@"test"]) {
  
      push = YES; //Bolean
  }
  
  else {
  
      push = NO; //Bolean
    }
  }
  
  - (BOOL)shouldPerformSegueWithIdentifier:(NSString *)identifier sender:(id)sender {
  
  if ([identifier isEqualToString:@"SearchSegue"] &amp;&amp; push==YES) {
  
      NSLog(@"Showed");
      return YES;
  }
  else{
  
      NSLog(@"Not showed");
      return NO;
    }
  }
  </code></pre>