Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

某些场景下 UINavigationController(QMUI).qmui_isPushing 可能遇到数组越界 #1094

Closed
JerryDream007 opened this issue Sep 14, 2020 · 2 comments
Labels

Comments

@JerryDream007
Copy link

Bug 表现
问题的具体描述
push到某个控制器时,self.childViewControllers发生了数组越界

截图
Bug 现场的界面截图,或者 Xcode 控制台的错误信息截图,有问题的代码截图
image

如何重现

  1. 将导航栏改成RTRootNavigationController后,就会出现

预期的表现
正常情况下,应该正常push

其他信息

  • 设备: iPhone 7P
  • iOS 版本: [iOS 13.2.2]
  • Xcode 版本: [Xcode 11.0]
  • QMUI 版本: [4.2.0]
@MoLice
Copy link
Collaborator

MoLice commented Sep 14, 2020

这里 if 内部用 childViewControllers 没什么特别含义,应该统一都用 viewControllers 来避免这种问题,你可以先本地统一改为 viewControllers,新版本将会修复这个问题。

@MoLice MoLice added the bug label Sep 14, 2020
@MoLice MoLice changed the title childViewControllers数组越界 某些场景下 UINavigationController(QMUI).qmui_isPushing 可能遇到数组越界 Sep 14, 2020
@MoLice
Copy link
Collaborator

MoLice commented Sep 29, 2020

已发布 4.2.1 修复该问题。

@MoLice MoLice closed this as completed Sep 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants