Tencent / QMUI_iOS

QMUI iOS——致力于提高项目 UI 开发效率的解决方案
http://qmuiteam.com/ios
Other
7.05k stars 1.37k forks source link

AutomaticCustomNavigationBarTransitionStyle 在 setViewControllers 时效果错误 #1501

Closed MoLice closed 11 months ago

MoLice commented 1 year ago

项目开启 AutomaticCustomNavigationBarTransitionStyle,在 setViewControllers 时参与动画的前后两个界面如果导航栏样式是自定义的,会有错误的表现。

场景1 有A、B、C三个界面,A、B的导航栏是全局默认样式,C的导航栏背景自定义。 A push B,B setViewControllers:@[A,C] 可观察到 setViewControllers 时 C 的导航栏先白色再变成最终的颜色。

https://github.com/Tencent/QMUI_iOS/assets/1190261/f4ecaba1-151f-40b6-86ca-07908e851fc1

场景2 有A、B、C三个界面,A、C的导航栏是全局默认样式,B的导航栏背景自定义。 A push B,B setViewControllers:@[A,C] 可观察到 setViewControllers 时 B 的导航栏瞬间变成全局默认的,C的导航栏白色,然后C的导航栏再变成自定义的。

https://github.com/Tencent/QMUI_iOS/assets/1190261/3a533bae-af82-47d7-836e-c1a703454ea2

其他信息

MoLice commented 11 months ago

已发布 4.7.0 修复该问题。