先自定义一个UITabbarController,用于Storyboard中
再在MyTabbarController中实现protocol
@interface MyTabbarController : UITabBarController
@end再实现代理里面的方法
@implementation MyTabbarController
- (BOOL)tabBar...
分类:
移动开发 时间:
2014-12-04 12:11:40
阅读次数:
349
现在正在写的一个项目,涉及到了使用两个TabBar,然后我需要显示其中一个的时候,然后隐藏另外一个,但是中间却出现问题了.我查了一些资料,想总结一下关于TabBar的隐藏.
第一种方法是:
//隐藏tarBar
self.hidesBottomBarWhenPushed =
YES;
这个方法是UIViewController的属性,很好用...
分类:
其他好文 时间:
2014-11-12 13:54:39
阅读次数:
247
若是程序的结构是:tabbarcontrol里有一个nagvationcontroller,然后nag又有三层,分别为A,B,C,假如我希望C的View里面不显示出tabbar,那么是需要在B的viewappear里面加入代码:- (void)viewDidAppear:(BOOL)animated...
分类:
其他好文 时间:
2014-10-22 12:32:50
阅读次数:
190