Reputation: 830
I think this is a bug with the way apple is changing the tint color:
This is the code that i am using :
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemCancel target:self action:@selector(dismiss)];
self.navigationItem.leftBarButtonItem.tintColor = [UIColor whiteColor];
and later, on button tap :
[UIView animateWithDuration:1 animations:^{
self.navigationItem.leftBarButtonItem.tintColor = nil;
}];
Doesn't matter what color i put there, the effect is same.
Upvotes: 0
Views: 49
Reputation: 1331
Have you tried setting colors for diferent states?
[[theNavigationBar.subviews objectAtIndex:1] setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
[[theNavigationBar.subviews objectAtIndex:2] setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
Upvotes: 1