跳转后TabBar消失,返回后TabBar出现

相信大家都遇到过,从tabBarController中装了导航控制器。在导航控制器跳转一个详细界面的时候需要将tabBar消失掉,返回的时候重新出现。这种情况下我们只需要在跳转前添加一行代码   yzSettingVC.hidesBottomBarWhenPushed = YES;     就可以搞定。

   YZSettingViewController *yzSettingVC = [[YZSettingViewController alloc] init];

    yzSettingVC.title = @"设置";

    yzSettingVC.hidesBottomBarWhenPushed = YES;

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


你可能感兴趣的:(IOS技术)