星空网 > 软件开发 > 操作系统

iOS隐藏tabBar的方法

两种方法用来隐藏tabBar

1.在本页面隐藏

#pragma mark - 隐藏tabBar

- (void)viewWillAppear:(BOOL)animated{

    self.tabBarController.tabBar.hidden = YES;

}

- (void)viewWillDisappear:(BOOL)animated{

  self.tabBarController.tabBar.hidden = NO;

}

2.再跳界面之前设置跳转后隐藏tabBar

#pragma mark - 隐藏tabBar

- (void)handleClickTestButtonAction:(UIButton *)sender{

    SecurityTestingViewController *test = [[SecurityTestingViewController alloc]init];

    self.hidesBottomBarWhenPushed = YES;

    [self.navigationController pushViewController:test animated:NO];

}




原标题:iOS隐藏tabBar的方法

关键词:IOS

IOS
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们: admin#shaoqun.com (#换成@)。

国际快递价格:https://www.goluckyvip.com/tag/32316.html
国际快递价格表:https://www.goluckyvip.com/tag/32317.html
国际快递双清:https://www.goluckyvip.com/tag/32318.html
国际快递小包:https://www.goluckyvip.com/tag/32319.html
二次冻结资金:https://www.goluckyvip.com/tag/3232.html
国际快递印尼专线:https://www.goluckyvip.com/tag/32320.html
斥资210万美元,TikTok游说美国参议院阻止法案:https://www.goluckyvip.com/news/188213.html
大家推荐一下厦门三整天一个半天的旅游攻略:https://www.vstour.cn/a/365181.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流