hstdt

Results 40 comments of hstdt

@changsanjiang 加了一个ParentViewController之后,出现位移的概率大幅增加(这也是我项目目前的用法,再参杂其他逻辑,以及更多childviewcontroller,导致几乎复现率100%) https://user-images.githubusercontent.com/10215098/190837665-5eb7b3fd-f091-4c75-a006-868d447a548b.mp4 [playerv3.zip](https://github.com/changsanjiang/SJVideoPlayer/files/9590799/playerv3.zip) update: 小乌龙 此demo没有成功加上container,只是改变了cell高度,就触发了 update 2: ParentViewController + cell高度很高,触发率大幅提升 https://user-images.githubusercontent.com/10215098/190838369-b89b6415-22d3-4eba-9c88-0a4d65c45c68.mp4 [playerv3.1.zip](https://github.com/changsanjiang/SJVideoPlayer/files/9590826/playerv3.1.zip)

补充一个发现,`application(_:supportedInterfaceOrientationsFor:)` 如果固定返回`.portrait`,那么还是能旋转,且不会触发`viewWillTransition`,感觉可以在这个方法里面优化逻辑。比如结合`isHidden`和`isKeywindow`这两个属性。

Maybe `updateUIView/updateNSView` will make undo broken, Have a try with no code in this method?

`return String(self[Range(start ..< end)])` ===》 `return String(self[(start ..< end)])`

有尝试过发起Developer Technical Support么,感觉这种黑盒问题可以直接问官方

@rickytan 实际上也只是和UISplitViewController冲突了,iPad其他场景还没遇上过问题。

@rickytan 确实,不过已经不会闪退了,非常感谢。返回按钮和收起展开通过业务去手动定制应该可以。 不过导航栏动画,和title的设置也有些问题。DetailVC上会同时出现2个导航栏,同时在ViewDidLoad中设置的title会无效(第23秒)。 **更新**:还有第7-12秒的时候,DetailViewController的返回按钮消失。 ![jietu20180427-161651-hd](https://user-images.githubusercontent.com/10215098/39352788-58d2c3b8-4a38-11e8-9eb3-64b27b8d41d8.gif) [RTRootNavigationControllerSplitViewBug.zip](https://github.com/rickytan/RTRootNavigationController/files/1954373/RTRootNavigationControllerSplitViewBug.zip)

5:25 两个导航栏的问题依然存在,已进行了工程的Clean和重新下载branch. 确实做到这里就足够了,返回按钮就放到业务代码中去优化就好了。

最新版本,无论哪种方案(下方),都无法改变标题。之前的版本,虽然无法更改,但是第一时间出现的导航栏的标题,是ViewDidLoad中修改的。 ```objc - (void)viewDidLoad { [super viewDidLoad]; self.navigationItem.title = RT ? @"RT_Detail" : @"Normal_Detail"; self.title = RT ? @"RT_Detail" : @"Normal_Detail"; // Do any additional setup after loading the view,...

如果DetailViewController的NavigationController不使用RTRootNavigationController,那么这个导航栏就会不显示。 [RTRootNavigationControllerBranch199.zip](https://github.com/rickytan/RTRootNavigationController/files/1955064/RTRootNavigationControllerBranch199.zip)