segue transition with condition storyboard
I am new to storyboard and xcode (using 4.4) I would like to implement a login condition, that if accomplished - the segue would work. Otherwise, the user should stay on the same view. I created 2 UIView: ViewController and Bar Controller. I also created a segue from ViewController to Bar Controller and set its identifier to loginSegue as modal. In LoginViewController.m I added the following: - (IBAction)login:(id)sender { self.email = self.emailText.text; self.password = self.passwordText.text; if ([self.email isEqualToString:@"O"] && [self.password isEqualToString:@"O"]) [self