Unable to Modify Navigation Bar Color Using TintColor
-
15-06-2021 - |
Question
Here is the source code for BrowserViewController.m: http://pastebin.com/w282kRm6
As you can see, in many different places I have attempted to implement the code correctly using self.navigationController.navigationBar.tintColor = [UIColor darkGrayColor];
, but nothing has managed to work.
Solution
self.navigationController.navigationBar.tintColor = [UIColor colorWithRed:0.56 green:0.69 blue:0.71 alpha:1.0];
It works for me.
OTHER TIPS
[navController.navigationBar setTintColor:[UIColor colorWithRed:0/255.0
green:51.0/255.0
blue:102.0/255.0
alpha:1.0]];
[navController.navigationBar setBarStyle:UIBarStyleBlackTranslucent];
You can change green, blue,red.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow