App Source Code for Sale

or

Author

zaldzbugz

iOS > Utilities > Forms

ZQuicklook

Overview

Purpose ZQuicklook is a UIViewController component designed to provide developers the capability to create A presentation viewer for miltiple type of files in the app at once, like presentation slides.

With ZQuicklook, you can view files such as MP4, PNG, JPG, GIF, DOC, DOCX, PPT, PPTX, XLS, XLSX, PDF, RTF, TXT, CSV .

This API can display previews for the following items:

1. iWork documents
2. Microsoft Office documents (Office ‘97 and newer)
3. Rich Text Format (RTF) documents
4. PDF files
5. Images
6. Text files whose uniform type identifier (UTI) conforms to the public.text type (see Uniform Type Identifiers Reference)
7. Comma-separated value (csv) files

ZQuicklook also have delegate methods to handle the following:

1. Start Loading    - When the viewer starts loading the items
2. Finish Loading   - When the viewer finished loading the items
3. Will Disappear   - When the viewer is about to quit
4. Did Disappear    - When the viewer is done quitting

Supported OS & SDK Versions * iOS 5.0 (Xcode 4.2, Apple LLVM compiler 3.0)

ARC Compatibility ZQuicklook is built using ARC, so ARC by default is supported.

Installation To use the ZQuicklook component in an app, make sure to add the QuartzCore.framework and Quicklook.framework then drag the class files (ZQuicklook.h, and ZQuicklook.m).

How To Use: 1. In your viewController, make sure to import the ZQuicklook.h #import "ZQuicklook.h" 2. Anywhere in your function you can use the code below to display the viewer which supports multiple types of files.

   // ------------------------------------------
   // Using the ViewController
   // ------------------------------------------
   ZQuicklook *ql  = [ZQuicklook initWithCurrentPreviewIndex:0];
    // Document in bundle
    NSURL *docURL   = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"document1.doc" ofType:nil]];
    NSURL *pptURL   = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"powerpoint.ppt" ofType:nil]];
    NSURL *excelURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"excel.xlsx" ofType:nil]];
    NSURL *movieURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"movie.mp4" ofType:nil]];
    NSURL *imageURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"image.png" ofType:nil]];
    NSURL *pdfURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"pdf.pdf" ofType:nil]];
    [ql addItems:docURL, pptURL, nil];
    [ql addItem:excelURL];
    [ql addItem:movieURL];
    [ql addItem:imageURL];
    [ql addItem:pdfURL];
    [ql showInViewController:self animated:YES];   // This is the only key to specify which view controller to use, either ViewController or NavController

    // ------------------------------------------
    // Using the NavigationController
    // ------------------------------------------
    ZQuicklook *ql  = [ZQuicklook initWithCurrentPreviewIndex:0];
    // Document in bundle
    NSURL *docURL   = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"document1.doc" ofType:nil]];
    NSURL *pptURL   = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"powerpoint.ppt" ofType:nil]];
    NSURL *excelURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"excel.xlsx" ofType:nil]];
    NSURL *movieURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"movie.mp4" ofType:nil]];
    NSURL *imageURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"image.png" ofType:nil]];
    NSURL *pdfURL = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"pdf.pdf" ofType:nil]];
    [ql addItems:docURL, pptURL, nil];
    [ql addItem:excelURL];
    [ql addItem:movieURL];
    [ql addItem:imageURL];
    [ql addItem:pdfURL];
    [ql showInNavigationController:self.navigationController animated:YES];   // This is the only key to specify which view controller to use, either ViewController or NavController
Single App License $14.99
Download
Multiple App License $49.99
Download
9 comment Do you like this product? Have any Questions? Post a Comment. Leave a comment

More item by zaldzbugz

iJoystick
$14.99
5.00 (7 votes)
by zaldzbugz
ZComboBox
$13.99
5.00 (4 votes)
by zaldzbugz
ZWebBrowser
$15.99
4.25 (4 votes)
by zaldzbugz