标签:
+(void)initialize
{
//初始化设置主题
UINavigationBar *navBar = [UINavigationBar appearance];
[navBar setBackgroundImage:[UIImage imageNamed:@"NavBar64"] forBarMetrics:UIBarMetricsDefault];
//设置文字颜色
NSMutableDictionary *dict = [NSMutableDictionary dictionary];
navBar.tintColor = [UIColor whiteColor];
dict[NSForegroundColorAttributeName] = [UIColor whiteColor];
dict[NSFontAttributeName] = [UIFont systemFontOfSize:18];
[navBar setTitleTextAttributes:dict];
UIBarButtonItem *barButton = [UIBarButtonItem appearance];
[barButton setTitleTextAttributes:dict forState:UIControlStateNormal];
}
iOS中修改头部tabBarButton 默认按钮的颜色和默认字体颜色
标签:
原文地址:http://www.cnblogs.com/nianzhilian/p/4903147.html