UIDocumentInteractionController preview not pushed onto navigation stack on iPad

Originator:kristopherdjohnson
Number:rdar://13304151 Date Originated:27-Feb-2013 08:29 AM
Status:Duplicate/12567789 Resolved:
Product:iPad SDK Product Version:6.1
Classification:Serious Bug Reproducible:Always
 
Summary: The documentation for -[UIDocumentInteractionControllerDelegate documentIntersectionControllerViewControllerForPreview:] says "If you return a navigation controller from this method, the document interaction controller is pushed onto the navigation stack using the standard navigation controller animations. If you return any other type of view controller, the document interaction controller is displayed modally, in which case, the view controller you return must be capable of presenting a modal view controller."

This does appear to be the case for an app when run on iPhone or iPod Touch, but when run on iPad, the preview is always shown modally even if a navigation controller is provided.

This seems to be a bug in the UIDocumentationInteractionController implementation on iPad.


Steps to Reproduce:

Sample Xcode project is attached (also available at https://github.com/kristopherjohnson/DocumentPreviewTest). Code is identical for iPhone and iPad. When the app is run on iPhone, the document preview controller is pushed onto the navigation stack as described in the documentation. When run on iPad, the document preview is displayed modally.


Expected Results:

Preview should be pushed onto navigation stack.


Actual Results:

Preview is displayed modally.


Regression: N/A

Notes:

This bug is further described/discussed in these online forum threads:

- https://devforums.apple.com/thread/181223
- http://stackoverflow.com/questions/13057919/probable-bug-on-ipad-for-uidocumentinteractioncontroller-presentpreviewanimated

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!