右上角返回键执行的语句
[self.navigationController popToRootViewControllerAnimated:NO];
拦截所有的push操作
push时隐藏底部的tabbar
- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
viewController.hidesBottomBarWhenPushed = YES;
[super pushViewController:viewController animated:animated];
}
MJLoginViewController *login = [[MJLoginViewController alloc]init];
UINavigationController *nav = [[UINavigationController alloc]initWithRootViewController:login];
[self.navigationController presentViewController:nav animated:NO completion:nil];