iOS隱藏tabBar的方法:ide
1.設置self.tabBarController.tabBar.hidden=YES;
spa
self.tabBarController.tabBar.hidden=YES;
2.若是在push跳轉時須要隱藏tabBar,設置self.hidesBottomBarWhenPushed=YES;code
self.hidesBottomBarWhenPushed=YES; NextViewController *next=[[NextViewController alloc]init]; [self.navigationController pushViewController:next animated:YES]; self.hidesBottomBarWhenPushed=NO;
並在push後設置self.hidesBottomBarWhenPushed=NO;
it
這樣back回來的時候,tabBar會恢復正常顯示。io