//1.設(shè)置self.tabBarController.tabBar.hidden=YES;
self.tabBarController.tabBar.hidden=YES;
//2.如果在push跳轉(zhuǎn)時(shí)需要隱藏tabBar曹铃,設(shè)置self.hidesBottomBarWhenPushed=YES;
self.hidesBottomBarWhenPushed=YES;
DetailViewController *detail=[[DetailViewController alloc]init];
[self.navigationController pushViewController:deatil animated:YES];
self.hidesBottomBarWhenPushed=NO;
//并在push后設(shè)置self.hidesBottomBarWhenPushed=NO;
//這樣back回來的時(shí)候陕见,tabBar會(huì)恢復(fù)正常顯示。