先用presentModalViewController到登录界面,在登录界面在pushViewController到注册界面,push不过去。
LoginViewController *login = [[LoginViewController alloc]init];
UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:login];
[self.navigationController presentModalViewController:nav animated:YES];
网友评论