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

隐藏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/90891.html
中国寄马来西亚:https://www.goluckyvip.com/tag/90892.html
中国寄到马来西亚快递:https://www.goluckyvip.com/tag/90893.html
上海海运马来西亚:https://www.goluckyvip.com/tag/90894.html
上海马来西亚海运:https://www.goluckyvip.com/tag/90895.html
上海到马来西亚物流:https://www.goluckyvip.com/tag/90896.html
湘西游轮六 湘江游轮夜游:https://www.vstour.cn/a/411226.html
携程旅游网折扣优惠最新攻略(携程旅游网更佳折扣优惠):https://www.vstour.cn/a/411227.html
相关文章
我的浏览记录
最新相关资讯
海外公司注册 | 跨境电商服务平台 | 深圳旅行社 | 东南亚物流