Im attempting to set only the rightBarButtonItem of my navigationItem's on navigationBar. I'm using this code:
[self.navigationController.navigationBar setTintColor:[UIColor redColor]];
[self.navigationItem.rightBarButtonItem setTintColor:[UIColor whiteColor]];
The second line does nothing however and both the left and right UIBarButtonItem
stay red. What could be causing this issue?
I have also tried:
[self.navigationController.navigationBar setTintColor:[UIColor redColor]];
[self.rightBarButtonReferenceIBOutlet setTintColor:[UIColor whiteColor]];
I have also tried just using this line of code:
[self.navigationItem.rightBarButtonItem setTintColor:[UIColor redColor]];
And the right bar button remains red. I cannot figure out what is causing this issue.
PS.. still no answer Set color of one UIBarButtonItem using IBOutlet Also seems the same issue is here UIBarButtonItem setTintColor doesn't work on iOS7