UIDocumentPickerExtensionViewController cannot access its UINavigationController

Originator:davidz
Number:rdar://17984154 Date Originated:August 11, 2014
Status:Duplicate Resolved:Dupe: 16845982 (open)
Product:iOS SDK Product Version:8.0b5
Classification: Reproducible:Yes
 
Summary:
The iOS8 document picker extension view controller displays inside a navigation controller-style view, but it cannot access the navigation controller object. Specifically, self.navigationController is nil and so the picker has no access to the navigation bar and is unable to push items onto the navigation stack. As a result, navigating hierarchical file/folder structures requires awkward UI.

Please see the attached screenshots: the iCloud picker is able to push views onto the navigation bar, resulting in a UI consistent with the rest of iOS. However, this is not possible with third-party apps, resulting in subpar UI, for example stacked navigation bars.

Steps to Reproduce:
1. Instantiate a UIDocumentPickerExtensionViewController.
2. Attempt to push any view onto navigation controller

Expected Results:
[self.navigationController pushViewController:...] should push a view controller onto the navigation stack.

Actual Results:
self.navigationController is nil.

Version:
Any iOS 8

Notes:


Configuration:
Any iOS device or 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!