UIAlertView does not restore tintAdjustmentMode after being dismissed programmatically

Originator:adam
Number:rdar://17539332 Date Originated:7/2/2014
Status:Open Resolved:
Product:iOS Product Version:7.0
Classification:UI/Usability Reproducible:Always
 
Summary:
If you dismiss a UIAlertView programmatically using dismissWithClickedButtonIndex:animated: then the tintAdjustmentMode of the app is left as UIViewTintAdjustmentModeDimmed. This causes all the UI to be gray instead of the normal tintColor.

Interestingly, in iOS 8 the tintAdjustmentMode doesn't appear to change at all (i.e., nothing desaturates in the first place), and I'm not sure if that is intentional. I'm reporting this just in case that behavior is restored without fixing this bug.

Steps to Reproduce:
1. Build and run the attached app. An alert view appears when the app is launched. Notice the button in the background is gray.
2. Leave the app (press the home button).
3. Return to the app. The alert view is dismissed programmatically when the app resumes. Notice that the button is still gray. It should be blue (the default tintColor).

Expected Results:
The button should be blue after the alert is dismissed.

Actual Results:
The button is gray because the tintAdjustmentMode has been left as dimmed.

Version:
iOS 7.0

Notes:


Configuration:
iPad Mini

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!