在iOS 7之前,这段代码是可以正常工作的。我正在将一个UIViewController
与hidesBottomBarWhenPushed
设置为YES
,作为UINavigationController
的rootViewController
。但是,选项卡栏仍然会显示出来。下面是相关的代码:
Login *lv = [[Login alloc] init];
lv.HowToUseShows = showHowToUse;
lv.hidesBottomBarWhenPushed = YES;
UINavigationController *BokShelfNav = [[UINavigationController alloc] initWithRootViewController:lv];
//...
UITabBarController *tbController = [[UITabBarController alloc] init];
tbController.viewControllers = @[BokShelfNav,...];
有类似问题的人吗?
lv.hidesBottomBarWhenPushed = YES;
。 - Priyatham51