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

present 一个 QMUINavigationController 时,rootViewController 的 navigationBarTintColor 无效 #692

Closed
insist159 opened this issue Sep 4, 2019 · 2 comments
Labels

Comments

@insist159
Copy link

insist159 commented Sep 4, 2019

重现步骤

  1. 初始化一个 QMUINavigationController,并设置一个 viewController 作为 rootViewController。
  2. 为 rootViewController 添加 navigationItem.leftBarButtonItem/rightBarButtonItem。
  3. 在 rootViewController 里实现 navigationBarTintColor,返回 UIColorRed。
  4. present 第1步里的 navController,会发现第2步里添加的按钮颜色并非红色。

注意,必须为 UIModalPresentationFullScreen 才有问题,如果在 iOS 13 下测试,注意要显示指定为这个 style。

@MoLice MoLice changed the title navigationBarTintColor不起作用 present 一个 QMUINavigationController 时,rootViewController 的 navigationBarTintColor 无效 Sep 19, 2019
@MoLice MoLice added the bug label Sep 19, 2019
@MoLice
Copy link
Collaborator

MoLice commented Sep 23, 2019

navigationBar.tintColor 是在 UINavigationController+NavigationBarTransition.m:309-311 里设置的,但在一个 UINavigationController 被 present 时,qmui_animateAlongsideTransition:completion: 方法里的 animation block 并不会被调用,导致 rootViewController 的 tintColor 逻辑失效。

已修复该问题,请等待新版本发布。

@MoLice
Copy link
Collaborator

MoLice commented Sep 27, 2019

已发布 4.0.0 版本修复该问题。

@MoLice MoLice closed this as completed Sep 27, 2019
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