RTRootNavigationController icon indicating copy to clipboard operation
RTRootNavigationController copied to clipboard

setHidesBottomBarWhenPushed

Open CBL0123 opened this issue 7 years ago • 5 comments
trafficstars

将RTRootNavigationController放入到UITabBarController中,push时隐藏tabbar,只能到viewController里设置吗?可不可以在RTRootNavigationController加一个公共方法

CBL0123 avatar Dec 19 '17 09:12 CBL0123

demo 程序中有两种 VC 结构,一种是永远有 tabBar,一种是只有根上有 tabBar,您改下 if 条件试试吧

rickytan avatar Dec 19 '17 14:12 rickytan

能不能侧滑怎么设定的,我按这种方式做到,子页面为什么不能侧滑返回

tabController.viewControllers = @[[[RTContainerNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Root"]],
                                          [[RTContainerNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Remove"]],
                                          [[RTContainerNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Scroll"]],
                                          [[RTContainerNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Table"]],
                                          [[RTContainerNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Status"]]];
        self.window.rootViewController = [[RTRootNavigationController alloc] initWithRootViewControllerNoWrapping:tabController];

CBL0123 avatar Dec 20 '17 05:12 CBL0123

- (BOOL)rt_hasSetInteractivePop
{
    return !!objc_getAssociatedObject(self, @selector(rt_disableInteractivePop));
}

这里估计和某个第三方库冲突了,总是返回N0,导致子页面不能侧滑返回

CBL0123 avatar Dec 20 '17 07:12 CBL0123

我Project下有个第三方的UINavigationController的分类,但未在任何地方引用,分类里的代码却会自动执行,加入这个分类就可以侧滑返回,删除就不能滑动返回了

CBL0123 avatar Dec 20 '17 08:12 CBL0123

第三方库链接贴一下

rickytan avatar Dec 21 '17 02:12 rickytan