ritian

在多控制器下,要想多个页面隐藏导航栏(push出来的View),可以重写自己的NavigationController : UINavigationController,重写- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated
{
    viewController.hidesBottomBarWhenPushed = YES;
    [super pushViewController:viewController animated:animated];
}重写这个方法,可以拦截所有的push操作

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-01-24
  • 2021-12-01
  • 2022-12-23
猜你喜欢
  • 2021-11-16
  • 2021-12-28
  • 2021-11-03
  • 2022-01-06
  • 2022-02-01
  • 2021-06-11
相关资源
相似解决方案