如何隐藏标签栏控制器? [英] How to Hide Tab Bar Controller?
本文介绍了如何隐藏标签栏控制器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何隐藏标签栏控制器? 我想通过双击UIImageView隐藏标签栏控制器.
How to Hide Tab Bar Controller ? I want to hide the Tab Bar controller with double tap on UIImageView.
推荐答案
尝试以下代码:
[self.tabBarController.tabBar setHidden:YES];
需要在其中定义tabbarcontroller ...
where tabbarcontroller is needed to be defined...
编辑
AppDelegateFileName *appDelegate = (AppDelegateFileName *) [[UIApplication sharedApplication] delegate];
[appDelegate.tabbarController.tabBar setHidden:YES];
在执行此操作之前,请确保在appDelegate .h文件中创建tabbarController
的@property声明.
before doing this make sure that you create a @property declaration of tabbarController
in appDelegate .h file.
这篇关于如何隐藏标签栏控制器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文