UIViewController view always disappears (goes black) when dismissing modal while pushing new controller at same time

Originator:yufei
Number:rdar://17997563 Date Originated:12-Aug-2014 03:55 PM
Status:Open Resolved:
Product:iOS Product Version:iOS6-beta5
Classification: Reproducible:Always
 
Summary:
In the attached file, I've created a sample program that showcases the bug. It is always reproducible. When the steps to reproduce are followed, the view being pushed to the nav stack will go black. The nav bar is still visible and when tapped to go back, the previous view became black too. This was not happening in iOS7.

Steps to Reproduce:
1. Run program. A red view in a navigation controller will be pushed to the screen
2. Press the button on the red view to "Push a modal view". A blue modal will be pushed formsheet style with cross dissolve animation.
3. Press the button on the blue modal to "Remove me". This causes the blue modal to call dismiss on itself, as well as cause the red view controller under it to push a new blue view controller to its navigationcontroller

Expected Results:
The new blue controller should stay visible. When tapping Back, the red controller should still be visible.

Actual Results:
So there are two animations occurring at the same time, one to remove the blue modal from the red controller and one to push a new blue controller to the nav stack. When the animations end, the new blue view controller becomes black. When you tap Back on the nav bar, the red controller is black too. Note that if we dismiss or push with animated:NO, the problem goes away.

Version:
iOS8, xcode 6 beta 5

Notes:
This also occurs on our iPad test devices, not just the simulator.
This also occurs on iOS8 devices running a build built with xcode 5 (ios7 SDK). Also, after the views go black, it seems they were removed from the view hierarchy (no superviews). The superview they had before they were removed is of class _UIParallaxDimmingView.

Configuration:
iPad Retina (8.0) simulator

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!