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];