0
点赞
收藏
分享

微信扫一扫

自定义导航栏样式

路西法阁下 2022-08-07 阅读 48

-(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"];
}



 

举报

相关推荐

0 条评论