此代码在 iOS 7 发布之前运行良好。我分配 a UIViewController
, 和hidesBottomBarWhenPushed
as YES
, as 的rootViewController
a UINavigationController
。但是 TabBar 无论如何都会显示出来。以下是相关代码:
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,...];
有类似问题的人吗?