-(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"]; }
自定义导航栏样式
猜你喜欢
转载自duchengjiu.iteye.com/blog/2220444
今日推荐
周排行