RTRootNavigationController icon indicating copy to clipboard operation
RTRootNavigationController copied to clipboard

Implicitly make every view controller has its own navigation bar

Results 82 RTRootNavigationController issues
Sort by recently updated
recently updated
newest added

I modified the original text to be concise and easier to read.

根视图初始化: tabController.viewControllers = @[[[RTRootNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Root"]], [[RTRootNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Remove"]], [[RTRootNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Scroll"]], [[RTRootNavigationController alloc] initWithRootViewController:[story instantiateViewControllerWithIdentifier:@"Table"]]]; self.window.rootViewController = tabController; 在某个二级控制器内。跳转第二层TabbarController: UITabBarController *tabController = [[RTTabBarController alloc] init]; tabController.viewControllers...

if (@available(iOS 15.0, *)) { [[UINavigationBar appearance] setScrollEdgeAppearance:({ UINavigationBarAppearance *app = [UINavigationBarAppearance new]; [app configureWithDefaultBackground]; // init app property app.backgroundColor = UIColorHex(0x163a59); app.shadowColor = UIColorHex(0x163a59); app; })]; } 你好,根据这个配置颜色,如果vc里面有tableview,向上画一下就变成了白色,希望大佬能关注到这个问题

iOS 13以下版本 从其他界面调用 self.tabBarController.selectedIndex = index; 会导致view 高度往上偏移tabbar 高度

``` [self.rt_navigationController.interactivePopGestureRecognizer addTarget:self action:@selector(onBack:)]; ``` 我用这个设置返回,只能获取`UIGestureRecognizerStateBegan`和`UIGestureRecognizerStateEnded`,而原生的那个是要么侧滑比较快,要么是过半屏的侧滑返回,有几种方式,一个是hook系统的方法,替换,这个得分析target的方法,并hook,这个不同系统可能会不一样,或者随时被修改。另一种是自己禁用返回,而自己添加一个返回事件。这个比较方便,但对于那个页面到一半得那里,我不知道怎么写。需要研究。

rickytan,你好,我们项目中用到了这个库,目前在转场动画时遇见了问题: 我自定义一个类,遵守 UIViewControllerAnimatedTransitioning 协议 ,在当前UIViewController的 `- (id)navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC;` 返回自定义类的实例对象,但在这类中只走 `- (NSTimeInterval)transitionDuration:(id)transitionContext;` 不走 `- (void)animateTransition:(id)transitionContext;` 如果在UIViewController的 `- (id)navigationController:(UINavigationController *)navigationController animationControllerForOperation:(UINavigationControllerOperation)operation fromViewController:(UIViewController *)fromVC toViewController:(UIViewController *)toVC;` 直接返回self,上面的两个代理方法都走。