segue transition with condition storyboard

a 夏天 提交于 2019-12-01 01:57:09

Delete the blank line in between your if and [self perform...]

Additionally, you may want to consider keeping your if-else statements in braces to keep this problem from happening again:

if ([self.email isEqualToString:@"O"] && [self.password isEqualToString:@"O"]){
    [self performSegueWithIdentifier:@"LoginSegue" sender:sender];
}else{
    [passwordText setText:@""];
}

If this doesn't solve the problem then be sure to varify that the segue is attached to the two controllers and not directly to a button.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!