Tutorial: Using The QLPreviewController For Viewing Documents

The QLPreviewController API included in the iOS SDK allows you to provide users the ability to view many different document types such as .XLS files, Word document files, and PDF files.

John Muchow has created an example application demonstrating the use of QLPreviewController. Using the example you can view several different document types, and even print (using a wireless printer.)

You can find John’s example along with a short tutorial explaining the basics of implementing the QLPreviewController here:
Preview Documents Tutorial And Example

How to add viewing for different document formats is something I see searched for frequently on this site, and this example should prove helpful if you have wanted to add this viewing capability into an app.

©2011 iPhone, iOS 4, iPad SDK Development Tutorial and Programming Tips. All Rights Reserved.

.

DeliciousTwitterTechnoratiFacebookLinkedInEmail

Leave a Reply

Your email address will not be published. Required fields are marked *