相关疑难解决方法(0)

IOS 7导航栏文本和箭头颜色

我想将导航栏的背景设置为黑色,其中的所有颜色都是白色.

所以,我使用了这段代码:

[[UINavigationBar appearance] setTitleTextAttributes:
     [NSDictionary dictionaryWithObjectsAndKeys:
      [UIColor whiteColor],
      NSForegroundColorAttributeName,
      [UIColor whiteColor],
      NSForegroundColorAttributeName,
      [NSValue valueWithUIOffset:UIOffsetMake(0, -1)],
      NSForegroundColorAttributeName,
      [UIFont fontWithName:@"Arial-Bold" size:0.0],
      NSFontAttributeName,
      nil]];
Run Code Online (Sandbox Code Playgroud)

但是后退按钮文本颜色,箭头条形按钮仍然是默认的蓝色.
如何更改下面图像的颜色?

在此输入图像描述

iphone objective-c uinavigationbar ios ios7

234
推荐指数
8
解决办法
17万
查看次数

标签 统计

ios ×1

ios7 ×1

iphone ×1

objective-c ×1

uinavigationbar ×1