Setting tintColor on unrelated appearanceWhenContainedIn class wrongly applies to UIBarButtonItem
| Originator: | jeremy | ||
| Number: | rdar://22741419 | Date Originated: | 9/17/2015 |
| Status: | Open | Resolved: | |
| Product: | iOS | Product Version: | 8.4 and 9.0 |
| Classification: | Reproducible: | Yes |
Summary: An application that calls setTintColor on an appearanceWhenContainedIn class where the contained in class inherits from UIViewController breaks custom tintColor on a UIBarButtonItem. Steps to Reproduce: 1. A UIBarButtonItem specifies a custom tintColor (redColor, for instance) 2. Application calls something like this: [[UIView appearanceWhenContainedIn:[UIAlertController class], nil] setTintColor:[UIColor greenColor]]; 3. When presented on a UINavigationBar the UIBarButtonItem will have the application window's tintColor rather than its custom color Expected Results: UIBarButtonItem has specified tintColor Actual Results: UIBarButtonItem has window's tintColor
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!