在有tabbarcontroller时,A界面push到B界面想隐藏底部tabbar,从B界面返回A后再显示tabbar。那么在控制器A中可以设置

-(void)clickTheSettingBtn{
    ControllerB *vcB = [[ControllerB alloc]init];
    //在跳转之前设置为YES
    self.hidesBottomBarWhenPushed = YES;
    [self.navigationController pushViewController:vcB animated:YES];
    //在跳转之后再设置为NO
    self.hidesBottomBarWhenPushed = NO;
}

 

posted on 2016-06-14 17:45  lixin327  阅读(1835)  评论(0编辑  收藏  举报