[英]iOS - Navigation Bar Back Button color is subdued
I'm in the process of updating an older Objective C app to work with iOS 9 and I'm running into a little UI weirdness. 我正在更新较旧的Objective C应用程序以与iOS 9配合使用,并且遇到了一些UI怪异的问题。 I have a non-translucent Navigation Bar.
我有一个不透明的导航栏。 My issue is that the Back button is more blue than white.
我的问题是“后退”按钮比白色更蓝。 I would like for the back button to be as clear as the Navigation Bar title.
我希望后退按钮与导航栏标题一样清晰。 (see attached screenshot)
(请参阅附件的屏幕截图)
Here is what I have so far: 这是我到目前为止的内容:
self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.11 green:0.27 blue:0.53 alpha:1.0];
self.navigationController.navigationBar.translucent = NO;
[self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName : [UIColor whiteColor]}];
self.navigationItem.hidesBackButton = NO;
self.navigationItem.title = @"My Title";
My question is how do I get my back button to look like my title? 我的问题是如何使后退按钮看起来像我的标题?
Try 尝试
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
Document 文献
The tint color to apply to the navigation items and bar button items.
应用于导航项目和条形按钮项目的色彩颜色。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.