Petro Korienev
Petro Korienev

Reputation: 4027

Navigation bar buttons lost tint on iOS 7

I am experiencing strage issue on iOS7. The navbar just after first time user gets to main screen: Nice navbar
The navbar after simple push/pop Bad navbar
The setup in storyboard:
Setup
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

Answers (1)

Tarek Hallak
Tarek Hallak

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

Related Questions