1、设置状态栏颜色
首先在info里边儿添加View controller-based status bar appearance :NO
然后[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];将状态栏设置为白色
2、设置tab颜色
self.tabBarVC.tabBar.barTintColor = [UIColor redColor];设置tab背景色
//设置tabbar字体选中字体颜色
NSDictionary *selectedDic = [NSDictionary dictionaryWithObject:kWhite forKey:NSForegroundColorAttributeName];
[vc.tabBarItem setTitleTextAttributes:selectedDic forState:UIControlStateSelected];
//设置tabbar未选中字体颜色
NSDictionary *unSelectedDic = [NSDictionary dictionaryWithObject:[UIColor colorWithRed:255 green:255 blue:255 alpha:0.5] forKey:NSForegroundColorAttributeName];
[vc.tabBarItem setTitleTextAttributes:unSelectedDic forState:UIControlStateNormal];
3、设置tab颜色
vc.navigationController.navigationBar.barTintColor = kThemeColor;//设置背景色
vc.navigationController.navigationBar.tintColor = kWhite;//设置item颜色
[vc.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:kWhite}];//设置title颜色