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

iOS 14.0-14.2,setViewControllers 去到一个 hidesBottomBarWhenPushed = NO 的界面会 crash #1177

Closed
MoLice opened this issue Jan 11, 2021 · 1 comment
Labels

Comments

@MoLice
Copy link
Collaborator

MoLice commented Jan 11, 2021

Bug 表现
考虑以下伪代码:

vc.hidesBottomBarWhenPushed = NO;
viewControllers = nav.viewControllers.mutableCopy;
[viewControllers addObject:vc];
[nav setViewControllers:viewControllers animated:YES];

在执行到 setViewControllers 时会命中 UITabBar+QMUI.m 里修复 #1100 的代码,这段代码没有兼容好这种情况,导致数组越界。

其他信息

  • 设备: [例如模拟器、iPhone、iPad]
  • iOS 版本: [iOS 14.0-14.2]
  • Xcode 版本: [Xcode 14.0]
  • QMUI 版本: [4.x.x]
@MoLice MoLice added the bug label Jan 11, 2021
@MoLice
Copy link
Collaborator Author

MoLice commented Mar 31, 2021

已发布 4.2.3 修复该问题。

@MoLice MoLice closed this as completed Mar 31, 2021
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

1 participant