我想将导航栏的背景设置为黑色,其中的所有颜色都是白色.
所以,我使用了这段代码:
[[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)
但是后退按钮文本颜色,箭头和条形按钮仍然是默认的蓝色.
如何更改下面图像的颜色?
