自定义导航栏样式
原创
©著作权归作者所有:来自51CTO博客作者dcj3sjt126com的原创作品,请联系作者获取转载授权,否则将追究法律责任
-(void)setupAppAppearance
{
[[UILabel appearance] setFont:[UIFont fontWithName:@"FZLTHK—GBK1-0" size:20]];
[UIButton appearance].titleLabel.font =[UIFont fontWithName:@"FZLTHK—GBK1-0" size:20];
[[UINavigationBar appearance] setBarTintColor:[UIColor blueColor]];
[[UINavigationBar appearance] setTintColor:[UIColor grayColor]];
[UINavigationBar appearance].titleTextAttributes = [NSDictionary dictionaryWithObject:[UIColor grayColor] forKey:@"NSForegroundColorAttributeName"];
[UITabBar appearance].barTintColor = [UIColor blueColor];
[UITabBar appearance].tintColor = [UIColor grayColor];
[UITabBar appearance].selectionIndicatorImage = [UIImage imageNamed:@"icon"];
}