self.navigationController.navigationBarHidden = YES;
//1.設(shè)置self.tabBarController.tabBar.hidden=YES;
self.tabBarController.tabBar.hidden=YES;
//2.如果在push跳轉(zhuǎn)時需要隱藏tabBar,設(shè)置self.hidesBottomBarWhenPushed=YES;
self.hidesBottomBarWhenPushed=YES;
NextViewController *next=[[NextViewController alloc]init];
[self.navigationController pushViewController:next animated:YES];
self.hidesBottomBarWhenPushed=NO;
//并在push后設(shè)置self.hidesBottomBarWhenPushed=NO;
//這樣back回來的時候择诈,tabBar會恢復(fù)正常顯示祸挪。
最后編輯于 :
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者