/** 这里用到个三方,转换color的进制*/
//三方 FlatUIKit
//设置导航条
//bar的背景颜色
[[UINavigationBar appearance] setBarTintColor:[UIColor colorFromHexCode:@"eb5352"]];
//文本颜色
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]];
[[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor],NSFontAttributeName:[UIFont systemFontOfSize:18]}];
//tabBarItem全局设定
//图片选中的原始样式
self.tabBarItem.selectedImage = [self.tabBarItem.selectedImage imageWithRenderingMode:UIImageRenderingModeAlwaysOriginal];
//选中文本的颜色
[[UITabBarItem appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor colorFromHexCode:@"eb5352"]} forState:UIControlStateSelected];