1、导航栏显示的颜色与实际颜色不一致怎么解决?
self.navgationController.navfgationbar.translucent=NO;
2、导航栏下面的线怎么去掉?
在viewWillAppear方法里面写上以下两句话:
[self.navgationController.navgationbar setBackgroundImage:[[UIImage alloc]init] forBarPosition:UIBarPositionAny barMetrics:UIBarMetricsDefault];
[self.navgationController.navgationbar setShadowImage:[[UIImage alloc]init]];
2、设置导航背景颜色:
self.navigationController.navigationBar.barTintColor=REDCOLOR;\
3、设置导航字体颜色:
[self.navigationController.navigationBarsetTitleTextAttributes:
@{NSFontAttributeName:[UIFontsystemFontOfSize:19],
NSForegroundColorAttributeName:[UIColorwhiteColor]}];
4、修改tabBarItem的字体颜色:[tabBarItem setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor],NSForegroundColorAttributeName, nil] forState:UIControlStateNormal];
本文详细介绍了如何解决iOS应用中导航栏显示颜色与实际不一致的问题,并提供了去掉导航栏下方线的方法,包括设置导航背景颜色、字体颜色等关键步骤。
4595

被折叠的 条评论
为什么被折叠?



