Tint Color broken when presenting an alert view controller

Originator:michaelhochs
Number:rdar://24654192 Date Originated:15-Feb-2016 03:28 PM
Status:Closed Resolved:Duplicate of 23372161
Product:iOS SDK Product Version:9.2
Classification:Serious Bug Reproducible:Always
 
Summary:
Presenting a UIAlertController on a modal view controller breaks the tint color of all the subviews of the original presented view controller.

Steps to Reproduce:
- Open the example project
- Note that in AppDelegate.m the window’s tint color is set to red
- Note that in the Main.storyboard the tint color of the two segmented controls in the last two screens is set to green
- Run the app either on simulator or device
- Tap the ‘Present Screen’ button to get the app in a modal ui state
- Note that the buttons on the next screen are red, as it’s the window’s tint color and the segmented control is green as in the storyboard.
- Tap on ‘Show alert’
- Dismiss the alert
- Tap on ‘Push’ while looking at the segmented control

Expected Results:
- The green segmented control stays green and the next screen has a green segmented control as well

Actual Results:
- The segmented control turns red as you tap on the push button.
- The segmented control on the next page is red as well

Regression:
This does not happen if you don’t open the alert but instead directly push the next screen.

Notes:
There is a screencast and a sample project attached to this radar.

See the screencast. It showed the issue on a simulator there because I can point with the mouse to the area where something unexpected happens, but it is reproducible on the device as well.

This may be related to rdar://18365720 but I am unsure, so I file this as a new radar.

For OpenRadar please find the sample at https://github.com/michaelochs/radars/tree/master/24654192%20-%20TintColorWithAlertViewBroken

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!