UIBarButtonItems selected color won't change properly in iOS 7

Viewed 1167

So I'm having issues with UIBarButtonItem appearances in iOS 7. There's a property which I can't find any documentation for that seems to set the opacity of navigation bar buttons when pressed, and I don't know how to modify it.

[self.navigationController.navigationBar setTintColor:[UIColor whiteColor]];
[[UIBarButtonItem appearance] setTitleTextAttributes:@{UITextAttributeTextColor: [UIColor whiteColor]} forState:UIControlStateNormal];
[[UIBarButtonItem appearance] setTitleTextAttributes:@{UITextAttributeTextColor: [UIColor orangeColor]} forState:UIControlStateHighlighted];

For this code, the result I get is shown below.

Normal Button Highlighted Button

I'm not sure what's going on here. The first problem is that I can't seem to get the arrow to tint (because there's no setTintColor:forState: method). The second problem is this awful opacity/tint when pressed. Thanks!

3 Answers
Related