Skip to content

kristopherjohnson/DocumentPreviewTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

This project is intended to demonstrate that there is a bug in Apple's UIDocumentationInteractionController implementation, or that the documentation is incorrect.

The bug is described in detail here:

Briefly, according to the documentation for documentIntersectionControllerViewControllerForPreview::

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 works as described when run on iPhone, but when run on the iPad, the preview is always displayed modally rather than being pushed onto the navigation stack.

About

Illustration of a bug in Apple's UIDocumentInteractionController implementation, or a flaw in its documentation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published