Dismissing UIDocumentInteractionController removes presenting view controller's views

Originator:boberkfell
Number:rdar://15090681 Date Originated:9/26/2013
Status:Open Resolved:
Product:iOS SDK Product Version:7.0
Classification: Reproducible:Yes
 
Example project available at https://github.com/benoberkfell/radar_15090681

Summary:
Dismissing a UIDocumentInteractionController in some cases will remove the presenting view controller's views.  This happens when the UIDocumentInteractionController's presenting view controller was wrapped in a UINavigationController presented with the UIModalPresentationPageSheet or UIModalPresentationFormSheet style. 

When the UIDocumentInteractionController is dismissed, the presenting view controller's views are removed, including elements from the UINavigationController.  What remains are a UIDimmingView, UIDropShadowView, and a UIImageView.

Steps to Reproduce:
Refer to sample project, or do the following

1. Create a new empty iOS application in Xcode 5
2. Define a root view controller, with a button
3. That button's target is a function which instantiates another view controller ("Presenting View Controller"), wrapped in a UINavigationController
4.  Define the "Presenting View Controller" to be a UIDocumentInteractionControllerDelegate; documentInteractionControllerViewControllerForPreview should return "self"
5. "Presenting View Controller" has a button which presents a UIDocumentInteractionController with a local file URL
6. Observe that the UIDocumentInteractionController appears correctly
7. Observe when dismissing the UIDocumentInteractionController that "Presenting View Controller's" UI elements are gone

Expected Results:
Expected the UIDocumentInteractionController to dismiss and the presenting view controller's views to remain

Actual Results:
The UIDocumentInteractionController dismisses and the presenting view controller's views are removed, leaving a plain white/gray box where the presenting view controller formerly existed.  The app no longer responds to any touch events after this point.

Version:
iOS 7/11A465

Notes:

Configuration:
Occurs on iPad Simulator (iOS 7.0) and iPad 3 (Wifi) running iOS 7 11A465

Does not matter whether the application was compiled against the iOS 6.1 or iOS 7 SDK

Comments

Duped as 15097769

By heath.borders at Sept. 27, 2013, 2:45 p.m. (reply...)

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!