QLPreviewController renders incorrectly if presented from a NavigationController that has been presented modally

Originator:bob
Number:rdar://18810819 Date Originated:29 Oct 2014
Status:Duplicate of 17792460 Resolved:
Product: Product Version:
Classification:Bug Reproducible:100%
 
Summary:
When presenting a QLPreviewController in a Navigation Controller, the display is clear as it presents the QL content, if the navigation controller itself was presented.

See the attached sample project and video.

Imagine that the first VC is some form of login/authentication controller.  Upon successful authentication the Navigation controller is presented modally allow the user to access the applications content.  Clicking on the button, initiates a QLPreviewController - however as it animates on screen the incoming content is clear.  Once the animation has completed, the preview content pops and suddenly displays.

If you set the root view controller in the storyboard to be the navigation controller directly the QLPreviewController displays as expected.

Steps to Reproduce:
Open attached project.
Run
Click Login button
Click Present QL from this VC
Notice incorrect rendering
Open main.storyboard - make the NavigationController the root VC
Re-run. Notice QLPreviewController animates into place correctly.

Expected Results:
QLPreviewController animates onto the screen correctly.

Actual Results:
QLPreviewController content is not rendered until animation completes

Version:
iOS Simulator Version 8.1 (550.3)

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!