UIDocumentInteractionController vs QLPreviewController on iOS

Can anyone who used both comments: "What is the difference, and when should you use one over the other?" I spent the last couple of days adapting the code from the DocInteraction sample to my own application, and the more I am familiar with these two sets, the less differences between them:

  • They both display documents.
  • They both only display full screen.
  • They both have "open" and "printed"
  • They can be scaled using a small rectangle on the screen.

I just do not see the difference when switching between them, except for the color of the toolbar.

Of course, I am missing something (or am mistaken in relation to other points). Any thoughts?

+7
source share
1 answer

The UIDocumentInteractionController uses the QLPreviewController to display. It allows you to use additional hooks for delegate methods.

+3
source

All Articles