在push之前将控制器的属性hidesBottomBarWhenPushed设置为yes就好。
//准备要把控制器vc给push出去了
UIViewController *vc = [[UIViewController alloc]init];
vc.hidesBottomBarWhenPushed = YES;
/*push没动静NSLog(@"%@",self.navigationController);检查自己的控制器是不是为空*/
[self.navigationController pushViewController:vc animated:YES];
本文介绍如何在 iOS 应用中通过设置 UIViewController 的 hidesBottomBarWhenPushed 属性来实现底部导航栏的隐藏效果。
5277

被折叠的 条评论
为什么被折叠?



