iOS开发隐藏tabBar的问题

开发中遇到第一个页面需要显示tabBar,但是第二个页面不需要显示,当回到第一个页面的时候又需要显示的情况。

在第一个页面跳转到第二个页面的时候需要给第二个页面设置tabBar的隐藏

- (void)addNewDetail {
    CZAddViewController *addVC = [CZAddViewController new];
    
    addVC.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:addVC animated:YES];
    
}

 

posted @ 2016-04-07 16:32  MokeyChan  阅读(299)  评论(0编辑  收藏  举报