Ricky Tan

Results 160 comments of Ricky Tan

我看你这个 App 功能已经很复杂了。是最近才出现的?还是从开发一开始就这样?或者最近才集成的?如果最近才集成的,更新到最新版试试呢?

这个 crash 貌似是你自己的业务代码产生的,查看下 opengl 相关的使用? `setViewControllers:animated:` 确实是用法不好理解

```objc - (void)setViewControllers:(NSArray *)viewControllers animated:(BOOL)animated { [super setViewControllers:[viewControllers rt_map:^id(__kindof UIViewController * obj, NSUInteger index) { if (self.useSystemBackBarButtonItem && index > 0) { return RTSafeWrapViewController(obj, obj.rt_navigationBarClass, self.useSystemBackBarButtonItem, viewControllers[index - 1].navigationItem.backBarButtonItem, viewControllers[index...

不重新 wrap 会产生新问题,返回按钮上的字会不正确,如栈中已经有: **VC1** => title1 **VC2** => title2 **VC3** => title3 然后 `[self.navigationController setViewControllers:@[VC1, VC3] animated:YES]`,这时 VC3 上的返回按钮可能还是 title2,但应该是 title1 了(在 `useSystemBackBarButtonItem = YES` 的情况下)

返回的 title 修改应该可以不重新 wrap 实现,这个问题后面有空再看。 dismiss 的问题你其实可以直接 `[self dismissViewController...]`,不过也算个问题

有空帮助测试下分支 https://github.com/rickytan/RTRootNavigationController/tree/issue158 有没有解决你的问题

![image](https://user-images.githubusercontent.com/1250207/35712884-6b4abd3c-07ff-11e8-9e42-30d98d8458ea.png) ![image](https://user-images.githubusercontent.com/1250207/35712889-72bbe550-07ff-11e8-9c14-a7f49d2f1fa2.png) Demo 是正常的,你有什么特别的设置吗?

你的 tabbarcontroller 不是系统的吧?

方便的话附上一份出问题的 demo 代码