如题: 很简单, 在跳转到的控制器写下如下代码:
一,NavigationBar 注: 后面的animated: 填willAppear的animated动画是关键, 不要直接填yes
#pragma mark - viewWillAppear
-(void)viewWillAppear:(BOOL)animated{
[super viewWillAppear:animated];
[self.navigationController setNavigationBarHidden:NO animated:animated];
}
二, Tabbar
在跳转时:
self.hidesBottomBarWhenPushed = YES;
[self.navigationController pushViewController:ideaVc animated:YES];