PDF as Subview

In the master branch we've you can find a simple project called ResizingSample that adds the MFDocumentViewController's view as a subview of another controller's view.

Messages like -viewWillAppear and viewDidAppear have to be forwarded manually to the MFDocumentViewController when it is used outside of its intended scope (as element of a navigation stack or as a modal view controller).

Just press the Move! button to see what happens. The MoveViewController class is commented in the critical parts.