Tencent / QMUI_iOS

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

ViewController pop时_QMUITransitionNavigationBar样式错误 #1487

Open fanyuecheng opened 1 year ago

fanyuecheng commented 1 year ago

Bug 表现 ViewController pop时(包括手势),_QMUITransitionNavigationBar样式错误

截图 Mar-14-2023 13-00-54

如何重现

  1. 使用配置表 QMUICMI.automaticCustomNavigationBarTransitionStyle = YES; QMUICMI.navBarBackgroundImage = nil; QMUICMI.navBarBarTintColor = UIColorRed;
  2. vc1
    - (UIColor *)qmui_navigationBarBarTintColor {
     return  UIColorYellow;
    }
  3. vc2
    - (UIColor *)qmui_navigationBarBarTintColor {
     return  UIColorBlue;
    }
  4. vc1跳转vc2后pop返回

预期的表现 正常情况下,vc1的_QMUITransitionNavigationBar tintColor应该为Yellow而非配置表里的Red

其他信息

fanyuecheng commented 1 year ago

Demo QMUITest.zip

fanyuecheng commented 11 months ago

?这个不算bug吗

MoLice commented 11 months ago

最近确实修复过这种表现,可查看 #1501,但不确定和你的是否是同个问题,你可以直接替换这些文件尝试一下是否有效: NavigationBarTransition.zip

fanyuecheng commented 11 months ago

替换了文件并没有效果