//全局修改UITabBar
// TabBar 的字体颜色
// [[UITabBar appearance]setTintColor:[UIColor blackColor]];
// TabBar 的背景颜色
[[UITabBarappearance]setBarTintColor:[UIColorcolorWithRed:71/255.0green:154/255.0blue:221/255.0alpha:1]];
// [[UITabBar appearance]setBarTintColor:[UIColor whiteColor]];
//全局修改 UINavigationBar
// 改变之后push出来的导航字左边 <返回的颜色
[[UINavigationBarappearance]setTintColor:[UIColorwhiteColor]];
// 导航栏的背景颜色
// [[UINavigationBar appearance]setBarTintColor:[UIColor whiteColor]];
[[UINavigationBarappearance]setBarTintColor:[UIColorcolorWithRed:71/255.0green:154/255.0blue:221/255.0alpha:1]];
TabBar上面的 文字 样式和颜色加入到字典
NSMutableDictionary *dicTemp = [NSMutableDictionary dictionary];
dicTemp[NSForegroundColorAttributeName] = [UIColor whiteColor];
//
// dicTemp[NSFontAttributeName] = [UIFont systemFontOfSize:12];
NSMutableDictionary *dicTempTwo = [NSMutableDictionary dictionary];
dicTempTwo[NSForegroundColorAttributeName] = [UIColor blackColor];
// dicTempTwo[NSFontAttributeName] = [UIFont systemFontOfSize:18];
// //设置
[childVc.tabBarItem setTitleTextAttributes:dicTemp forState:UIControlStateNormal];
[childVc.tabBarItem setTitleTextAttributes:dicTempTwo forState:UIControlStateSelected];