ios 常见场景,navigationController push 一个新的界面,但是新的页面 不需要tabBar ,点击back 返回时,tabBar 又要展示出来,处理如下:
self.hidesBottomBarWhenPushed =YES;
[self.navigationController pushViewController:vc animated:YES];
self.hidesBottomBarWhenPushed = NO;