kurten
2015-06-12 11:51:57 +08:00
这个无用,7.0以上要设置
[[UINavigationBar appearance] setTintColor:[UIColor whiteColor]]; 返回的图标才会是白色。
字体的话
NSDictionary *attrs = @{NSForegroundColorAttributeName: [UIColor whiteColor],
NSBackgroundColorAttributeName: [UIColor whiteColor],
NSFontAttributeName: [UIFont boldSystemFontOfSize:18]};
[[UINavigationBar appearance] setTitleTextAttributes:attrs];
[[UIBarButtonItem appearance] setTitleTextAttributes:attrs forState:UIControlStateNormal];
不谢。。。