Reputation: 4027
I am experiencing strage issue on iOS7. The navbar just after first time user gets to main screen:
The navbar after simple push/pop
The setup in storyboard:
It's setup for logout button, the same is set up for search button.
There's no dealings performed with navigationItem
in code. Any suggestions?
EDIT For sure i can do the trick with
- (void)viewWillAppear:(BOOL)animated
{
self.leftBarButtonItem.tintColor = [UIColor whiteColor];
self.rightBarButtonItem.tintColor = [UIColor whiteColor];
}
But i don't understand the reason of losing tint. And this is the question, not what to do.
Upvotes: 2
Views: 696
Reputation: 18470
Since iOS7 you need to set the tintColor for the navigationBar to change the buttonItems color:
self.navigationBar.tintColor = [UIColor whiteColor];
Or you can set it from the storyboard as well.
For more explanation check this SO answer.
Upvotes: 1