"Button Shapes" Generates Wrong Background Color For Certain Navigation Bar Tint Colors

Originator:wetzeal
Number:rdar://16302543 Date Originated:12-Mar-2014
Status:Duplicate/15452490/Open Resolved:
Product:iOS SDK Product Version:
Classification: Reproducible:
 
Summary:
Our app customizes the UINavigationBar barTintColor and UIBarButtonItem tintColor to fit with the theme of our app. When a UIBarButtonItem is placed in a navigation bar with certain tint colors while Button Shapes is enabled, the background color of the button obscures the text of the button.

Steps to Reproduce:
1. Create a UIViewController in a UINavigationController
2. - (void)viewDidLoad {
    [super viewDidLoad];
    self.navigationController.navigationBar.barTintColor = [UIColor colorWithRed:0.784 green:0.796 blue:0.820 alpha:1.000];
    self.navigationItem.rightBarButtonItem = self.editButtonItem;
    self.editButtonItem.tintColor = [UIColor colorWithRed:0.068 green:0.125 blue:0.171 alpha:1.000];
}
3. You can't read the text on the button when Button Shapes is enabled.

Expected Results:
The button's background color should not obscure the text/tint color of the button label.

Actual Results:
The button's background color is very dark, much darker than if no bartTintColor is set.

Version:
iOS 7.1

As a followup, I've noticed that this only happens when translucent is set to true for the UINavigationBar in question, so it appears to somehow be related to the navigation bar's transparency.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!