升级iOS15后,出现导航栏黑色问题
if (@available(iOS 15.0, *)) {
UINavigationBarAppearance *appperance = [[UINavigationBarAppearance alloc]init];
//添加背景色
appperance.backgroundColor = [UIColor whiteColor];
appperance.shadowImage = [[UIImage alloc]init];
appperance.shadowColor = nil;
//设置字体颜色
[appperance setTitleTextAttributes:@{NSForegroundColorAttributeName:Color_CellTitleColor}];
self.navigationController.navigationBar.standardAppearance = appperance;
self.navigationController.navigationBar.scrollEdgeAppearance = appperance;
}