Closed TrevorYS closed 7 years ago
第一次能加载出来,点击tabbar后就隐藏了
你的意思是点击第4个 tabBarItem
,tabBar
就被隐藏了?还是说点击 SettingViewController
列表里的某个 cell 进入到下一级界面时,tabBar
隐藏了?
@MoLice 点击首页或者咨询、客户都会出现tabbar被隐藏掉
@MoLice 我搞了一个GIF动态图 你看下
这是 hidesBottomBarWhenPushed
属性错误设置导致的。你原本是设置在 UINavigationController
上,应该设置在 UIViewController
上。例如:
SettingViewController *myVC = [SettingViewController new];
myVC.hidesBottomBarWhenPushed = NO;
QDNavigationController *myNavController = [[QDNavigationController alloc] initWithRootViewController:myVC];
是我复制的时候复制错了。。没看出来。。不好意思
运行环境
iPhone
/iPad
/模拟器
iOS 8.2
8.x
1.2.0
具体问题描述
*QDTabBarViewController tabBarViewController = [[QDTabBarViewController alloc] init];
SettingViewController、ClientViewController、HomeViewController、ConsultViewController控制器都继承与QMUICommonViewController,在点击tabbar的时候tabbar就消失了,就出不来了。如下图
问题截图