rickytan / RTRootNavigationController

Implicitly make every view controller has its own navigation bar
MIT License
2.15k stars 378 forks source link

屏幕下面的tabbar未隐藏。 #289

Closed dslcoding closed 4 years ago

dslcoding commented 4 years ago
- (NSArray *)viewControllersForTabBar {
    MainVC *firstViewController = [[MainVC alloc] init];
    UIViewController *firstNavigationController = [[RTRootNavigationController alloc]
        initWithRootViewController:firstViewController];

    [firstViewController cyl_setHideNavigationBarSeparator:YES];
    // [firstViewController cyl_setNavigationBarHidden:YES];
    FindVC *secondViewController = [[FindVC alloc] init];
    UIViewController *secondNavigationController = [[RTRootNavigationController alloc]
        initWithRootViewController:secondViewController];
}

我在FindVC的界面加一个button Push到另一个界面后,底部的tabbar未隐藏是怎么回事? 补充一下,我用折是CYLTabBarController这个第三方库

rickytan commented 4 years ago

有两种集成方式,一种是导航器在 tabbar 外,一种是在 tabbar 下的 viewControllers,具体可见 Demo 工程 https://github.com/rickytan/RTRootNavigationController/blob/master/Example/RTRootNavigationController/RTAppDelegate.m#L46