iOS - 导航栏后退按钮颜色柔和
iOS - Navigation Bar Back Button color is subdued
我正在更新较旧的 Objective C 应用程序以与 iOS 9 一起使用,但我 运行 有点 UI 怪癖。我有一个 non-translucent 导航栏。我的问题是后退按钮比白色更蓝。我希望后退按钮与导航栏标题一样清晰。 (见附件截图)
这是我目前的情况:
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";
我的问题是如何让后退按钮看起来像我的标题?
尝试
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
文档
The tint color to apply to the navigation items and bar button items.
我正在更新较旧的 Objective C 应用程序以与 iOS 9 一起使用,但我 运行 有点 UI 怪癖。我有一个 non-translucent 导航栏。我的问题是后退按钮比白色更蓝。我希望后退按钮与导航栏标题一样清晰。 (见附件截图)
这是我目前的情况:
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";
我的问题是如何让后退按钮看起来像我的标题?
尝试
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
文档
The tint color to apply to the navigation items and bar button items.