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.

iOS 5 by tutorials provides an extensive collection of hands-on tutorials (over 600 pages) with source code examples to help you understand the new APIs as quickly as possible.
Read more...
DeliciousTwitterFacebookLinkedInEmail

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can send a Tweet to @maniacdev on Twitter or submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Click on a tab to select how you'd like to leave your comment

Leave a Reply

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

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>