我的代码如下:
我是这样跳到登陆页的:
LoginViewController *loginVC = [[LoginViewController alloc] initWithNibName:Nil bundle:nil];
UINavigationController *myNavigationController = [[UINavigationController alloc] initWithRootViewController:loginVC];
[self presentViewController:myNavigationController animated:YES completion:nil];
然后登陆页后退的时候。返回到tab。主页。
[self dismissViewControllerAnimated:NO completion:^{
[self.navigationController pushViewController:[[RankViewController alloc] init] animated:NO];
[self.tabBarController setSelectedIndex:0];
}];
我的意思就是直接返回tab首页。不要带任何导航控制器。因为带的话。导航栏就会有后退按钮。
彻底搞混了。求指教呀
你登录页在什么时候跳的,如果在首页 直接[self dismissViewControllerAnimated:no]就可以了