Version 1.5, 2013-04-18
Upgraded for iOS 6.0 SDK, updated to adopt current best practices for Objective-C, now uses Automatic Reference Counting (ARC) and NSByteCountFormatter.
(Full Revision History)
iOS SDK 6.0 or later
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.