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

隐藏tabbar的属性hidesBottomBarWhenPushed

项目中有需求是A视图控制器push之后B视图控制器需要隐藏底部的tabbar,在pop之后A视图控制器仍然显示tabbar.

其实不需要在push操作时敲 self.hidesBottomBarWhenPushed = NO;,然后再pop返回时再设置成NO.

对于这个全局属性,可以在A中

- (void)viewWillAppear:(BOOL)animated {

    self.hidesBottomBarWhenPushed = YES;

}

- (void)viewDidDisappear:(BOOL)animated {

    self.hidesBottomBarWhenPushed = NO;

}

这样就实现了。




原标题:隐藏tabbar的属性hidesBottomBarWhenPushed

关键词:

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

新西兰进口海运:https://www.goluckyvip.com/tag/92084.html
海运到西非:https://www.goluckyvip.com/tag/92085.html
菲律宾中国海运:https://www.goluckyvip.com/tag/92086.html
中国海运菲律宾:https://www.goluckyvip.com/tag/92087.html
加拿大海运航线:https://www.goluckyvip.com/tag/92088.html
菲律宾国际海运:https://www.goluckyvip.com/tag/92089.html
响沙湾门票套票价格大介绍(省钱攻略必备):https://www.vstour.cn/a/404238.html
上海到镇江茅山旅游攻略 上海到镇江茅山旅游攻略路线:https://www.vstour.cn/a/404239.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流