跳转隐藏UITabBar

 

   
//方法一
在跳转的事件里面写

   UIViewController *viewController = [[UIViewController alloc] init];

    viewController.hidesBottomBarWhenPushed = YES;

    [self.navigationController pushViewController:viewControllerr animated:YES];

//方法2

    self.tabBar.hidden = YES;
    for (UIView *view in self.view.subviews) {
        if (![view isKindOfClass:[UITabBar class]]) {
            view.frame = self.view.bounds;
            [view setBackgroundColor:[UIColor clearColor]];
        }
    }
原文地址:https://www.cnblogs.com/allanliu/p/4213508.html