我用过tabbar控制器。 当我通过推送控制器导航时,我通过使用方法隐藏了tabbar
self.hidesBottomBarWhenPushed = YES;当回到主根控制器时,它仍然隐藏。 但是,我想在根控制器上重新显示tabbar控制器。
我用过
self.tabBarController.tabBar.hidden = FALSE;但不工作。 那么,我怎么能得到这个呢?
告诉我任何解决方案。 提前致谢。
I've used tabbar controller. When I navigate by push controller, I've hidden tabbar by using method
self.hidesBottomBarWhenPushed = YES;And when back to Main Root controller, its still hidden. But, I want to re-show tabbar controller on root controller.
I've used
self.tabBarController.tabBar.hidden = FALSE;But not working. So, how can I get this?
Tell me any solution. Thanks in advance.
最满意答案
您可以使用此隐藏tabBar
self.tabBarController.tabBar.hidden=YES;如果您想再次显示它,请使用viewWillApper
-(void)viewWillAppear:(BOOL)animated { self.tabBarController.tabBar.hidden=NO; }如果你想用hide和show tabBar制作动画,那么按照我的答案Stack Answer Link
You can hide your tabBar using this
self.tabBarController.tabBar.hidden=YES;And if you want to show it again then use viewWillApper
-(void)viewWillAppear:(BOOL)animated { self.tabBarController.tabBar.hidden=NO; }And if you want to make animation with hide and show tabBar then follow my answer Stack Answer Link
在iPhone应用程序中重新显示根控制器上的Tabbar(Re-show Tabbar on Root Controller in iPhone application)我用过tabbar控制器。 当我通过推送控制器导航时,我通过使用方法隐藏了tabbar
self.hidesBottomBarWhenPushed = YES;当回到主根控制器时,它仍然隐藏。 但是,我想在根控制器上重新显示tabbar控制器。
我用过
self.tabBarController.tabBar.hidden = FALSE;但不工作。 那么,我怎么能得到这个呢?
告诉我任何解决方案。 提前致谢。
I've used tabbar controller. When I navigate by push controller, I've hidden tabbar by using method
self.hidesBottomBarWhenPushed = YES;And when back to Main Root controller, its still hidden. But, I want to re-show tabbar controller on root controller.
I've used
self.tabBarController.tabBar.hidden = FALSE;But not working. So, how can I get this?
Tell me any solution. Thanks in advance.
最满意答案
您可以使用此隐藏tabBar
self.tabBarController.tabBar.hidden=YES;如果您想再次显示它,请使用viewWillApper
-(void)viewWillAppear:(BOOL)animated { self.tabBarController.tabBar.hidden=NO; }如果你想用hide和show tabBar制作动画,那么按照我的答案Stack Answer Link
You can hide your tabBar using this
self.tabBarController.tabBar.hidden=YES;And if you want to show it again then use viewWillApper
-(void)viewWillAppear:(BOOL)animated { self.tabBarController.tabBar.hidden=NO; }And if you want to make animation with hide and show tabBar then follow my answer Stack Answer Link
发布评论