1
kurten 2015-06-12 11:51:57 +08:00 1
这个无用,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]; 不谢。。。 |
3
banxi1988 2015-06-18 14:03:05 +08:00
返回箭头的颜色,及返回按钮的颜色是由 UINavigationBar 的 tintColor控制的.
参考 : https://developer.apple.com/library/ios/documentation/UserExperience/Conceptual/UIKitUICatalog/UINavigationBar.html#//apple_ref/doc/uid/TP40012857-UINavigationBar-SW1 |