Tencent / QMUI_iOS

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

iOS15导航栏颜色设置 #1304

Closed wiilsliang closed 2 years ago

wiilsliang commented 2 years ago

sdk什么时候更新?在iOS15设置导航栏颜色旧方法不起作用了

xixisplit commented 2 years ago

临时解决方法.将下方代码. if (@available(iOS 15.0, *)) { UINavigationBarAppearance *appearance = [UINavigationBarAppearance new]; [appearance configureWithDefaultBackground]; appearance.backgroundImage = [navigationBar backgroundImageForBarMetrics:(UIBarMetricsDefault)]; appearance.shadowImage = [navigationBar shadowImage]; navigationBar.scrollEdgeAppearance = appearance; navigationBar.standardAppearance = appearance; }

放到 @implementation QMUICommonViewController (QMUINavigationController) 270行. 和 UINavigationController+NavigationBarTransition.m 505 行. 暂时没有测出其他问题.如果有其他问题.自行调试 @MoLice 我本地临时这样修改解决的.不知道是否还有其他问题

MoLice commented 2 years ago

1265

wiilsliang commented 2 years ago

1265

大哥,pod导的。。。