`
zhengjj_2009
  • 浏览: 148580 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

从第一个页面跳到第二个页面时隐藏tabBar的设置方法

 
阅读更多

从第一个页面跳到第二个页面时隐藏tabBar的设置方法

 

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{

    int section = indexPath.section;

    if (section == 1) {

        WalletViewController *vc = [[WalletViewControlleralloc] init];

        vc.hidesBottomBarWhenPushed = YES;//从第一个页面跳到第二个页面时隐藏tabBar的设置方法

        [self.navigationControllerpushViewController:vc animated:YES];

    }else if(section == 2){

        SettingViewController *vc = [[SettingViewControlleralloc] init];

        vc.hidesBottomBarWhenPushed = YES;//从第一个页面跳到第二个页面时隐藏tabBar的设置方法

        [self.navigationControllerpushViewController:vc animated:YES];

    }

 

}

分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics