其他分享
首页 > 其他分享> > ios tabbar显示隐藏封装处理

ios tabbar显示隐藏封装处理

作者:互联网

重写UINavigationController的push方法

- (void)pushViewController:(UIViewController *)viewController animated:(BOOL)animated{
    if (self.viewControllers.count > 0) {
      viewController.hidesBottomBarWhenPushed = YES;
    }
    [super pushViewController:viewController animated:animated];
}

 

标签:pushViewController,封装,viewController,self,ios,tabbar,viewControllers,animated
来源: https://www.cnblogs.com/zk1947/p/14360814.html