先设置hidesBottomBarWhenPushed = true然后紧接着在跳转页面的代码后设置hidesBottomBarWhenPushed = false
self.hidesBottomBarWhenPushed = true
self.navigationController?.pushViewController(LoginViewController(), animated: true)
self.hidesBottomBarWhenPushed = false
注意虽然self.tabBarController?.tabBar.isHidden=false可以显示tabbar,但是会有弹出的动作。