Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

UIDocumentInteractionController vs QLPreviewController on iOS

Can anyone who has used both comment on "What's the difference, and when should you use one over the other?" I have spent the last couple days adapting code from the DocInteraction sample to my own app, and the more familiar I become with these two kits, the less difference I see between them:

  • They both display docs
  • They both only present full screen
  • They both have "open in" and "print"
  • They both can zoom from a small rect on screen

I just don't see any difference when switching between them except the color of the toolbar.

Of course I'm missing something (or wrong about those other points). Any thoughts?

like image 732
SG1 Avatar asked Nov 01 '11 15:11

SG1


1 Answers

UIDocumentInteractionController uses QLPreviewController to display. It allows for additional hooks for delegate methods.

like image 196
James Avatar answered Sep 28 '22 19:09

James