Ras*_*spu 8 uitabbarcontroller uinavigationcontroller ios ios7
此代码在iOS 7发布之前运行良好.我分配UIViewController,与hidesBottomBarWhenPushed作为YES,为rootViewController的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,...];
Run Code Online (Sandbox Code Playgroud)
有类似问题的人吗?
Ada*_*den 23
我发现调用方法和设置属性的顺序会影响是否显示标签栏.
如果我放入视图控制器self.hidesBottomBarWhenPushed = YES;的viewDidLoad方法,我正在推动标签栏仍然显示.如果我将其移动到init方法栏,则会在iOS 6上隐藏标签栏.
| 归档时间: |
|
| 查看次数: |
6919 次 |
| 最近记录: |