1昆著、設(shè)置狀態(tài)欄顏色?
首先在info里邊兒添加View controller-based status bar appearance :NO
然后[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent];將狀態(tài)欄設(shè)置為白色
2、設(shè)置tab顏色
self.tabBarVC.tabBar.barTintColor = [UIColor redColor];設(shè)置tab背景色
//設(shè)置tabbar字體選中字體顏色
NSDictionary *selectedDic = [NSDictionary dictionaryWithObject:kWhite forKey:NSForegroundColorAttributeName];
[vc.tabBarItem setTitleTextAttributes:selectedDic forState:UIControlStateSelected];
//設(shè)置tabbar未選中字體顏色
NSDictionary *unSelectedDic = [NSDictionary dictionaryWithObject:[UIColor colorWithRed:255 green:255 blue:255 alpha:0.5] forKey:NSForegroundColorAttributeName];
[vc.tabBarItem setTitleTextAttributes:unSelectedDic forState:UIControlStateNormal];
3术陶、設(shè)置tab顏色
vc.navigationController.navigationBar.barTintColor = kThemeColor;//設(shè)置背景色
vc.navigationController.navigationBar.tintColor = kWhite;//設(shè)置item顏色
[vc.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:kWhite}];//設(shè)置title顏色