DocInteraction

Last Revision:
Version 1.6, 2014-06-17
Upgraded to iOS 7.0 SDK, now uses Storyboards in favor of XIB.
(Full Revision History)
Build Requirements:
iOS SDK 7.0 or later
Runtime Requirements:
iOS 6.0 or later

Demonstrates how to use UIDocumentInteractionController to obtain information about documents and how to preview them. There are two ways to preview documents: one is to use UIDocumentInteractionController's preview API, the other is directly use QLPreviewController. This sample also demonstrates the use of UIFileSharingEnabled feature so you can upload documents to the application using iTunes and then to preview them. With the help of "kqueue" kernel event notifications, the sample monitors the contents of the Documents folder.