Questions tagged [qlpreviewcontroller]

A QLPreviewController, or Quick Look preview controller, provides a specialized view for previewing a file on the iOS platform.

A QLPreviewController, or Quick Look preview controller, provides a specialized view for previewing a file on the (4.0+) platform. The Quick Look framework supports the following file types:

  • documents
  • Microsoft Office documents (Office ‘97 and newer)
  • Rich Text Format (RTF) documents
  • PDF files
  • Images
  • Text files whose uniform type identifier () conforms to the public.text type
  • Comma-separated value (CSV) files

You can refer to the Apple documentation for more information.

275 questions
1
vote
1 answer

QLPreviewController - Displaying issue

code snippets NSMutableArray *samplepdf = [[NSMutableArray alloc]initWithObjects:@"sam1.pdf",@"sam2.pdf",@"sam3.pdf",@"sam4.pdf", nil]; 1) QLPreviewController *previewController = [[QLPreviewController alloc] init]; …
Senthil
  • 510
  • 12
  • 28
1
vote
1 answer

How to display page scrubber with QLPreviewController in a subview

I am embedding a QLPreviewController in my own view controller by adding it as a child view controller like this (contentArea is a UIView property that determines which part of the screen the preview should use): QLPreviewController* preview =…
Daniel Schneller
  • 13,728
  • 5
  • 43
  • 72
1
vote
0 answers

QLPreviewController is crashing in iOS5.1 while continuous zooming and scrolling of PDF

QLPreviewController in iOS 5.1 is crashing after scrolling and zooming the pdf shown in controller. When I zoom and scroll continuously, it starts giving warning in log Ignoring call to [UIPanGestureRecognizer setTranslation:inView:] since gesture…
kanak
  • 23
  • 4
1
vote
1 answer

QLPreviewController not updating the previewItem in iOS6

i am saving file in document directory and loading it in - (id)previewController:(QLPreviewController *)previewController previewItemAtIndex:(NSInteger)idx with [NSURL fileURLWithPath:self.path]; returned url is of right image. but…
kanak
  • 23
  • 4
1
vote
1 answer

Quicklook/QLPreviewController shows a blank page. Gives a warning about framework symbols not found

I'm trying to preview images and other files from the app's documents folder. I have implemented Quicklook in my App, and it looks like it's launching, but it pops up with a blank screen and logs the following warning: warning: Unable to read…
Frederik
  • 594
  • 3
  • 9
  • 24
1
vote
1 answer

Opening files after download other than using webview

Is it possible to open word, excel, PDF, images file in iPhone version less than 4.0 with out using UIwebview ?. I have tried loading in web-view and here i want to know if any alternate solution to preview other than Web-view. I am downloading…
rashii
  • 500
  • 7
  • 17
1
vote
0 answers

changing UIBarButtonItem on the QLPreviewController does not work on iOS 4.3

I am inheriting QLPreviewController to set my own right button with my own handler. It works fine on iOS 5.1, and I even managed to get it to keep the button after switching to Home and than back to my app. [self.navigationItem…
Noam Gal
  • 3,315
  • 3
  • 36
  • 53
1
vote
1 answer

inheriting QLPreviewController, changed buttons on navigationItem are being reset after click on "Home"

We have a custom QLPreviewController implementation, so we can control the buttons presented to the user, and their actions. I have added the following code to the viewWillAppear method of the custom class: - (void)viewWillAppear:(BOOL)animated { …
Noam Gal
  • 3,315
  • 3
  • 36
  • 53
1
vote
1 answer

DocInteraction with iOS5

I found the sample code on Apple website for the DocInteraction project - I am after the QuickLook section for now. The code is written for an older version than 5.1 which is ok, but it gives me a lot of errors when I want to implement that…
jwknz
  • 6,598
  • 16
  • 72
  • 115
1
vote
1 answer

Is it possible to Disable "Open In..." for a generated PDF in iOS preview

I have an iOS app I'm writing for the iPad/iPhone. I'm generating a PDF report for printing, and have everything working, where the app will successfully open the generated PDF in QLPreviewController, I am using the following code to open the…
Asa Phelps
  • 13
  • 3
0
votes
1 answer

QLPreviewController with navigation buttons

I'm using a Quick Look Class object in order to preview documents in my app. In some applications I've see that have a toolbar with buttons to navigate across the doc pages, go to first and last pages. Is this possible using a QLPreview object? And…
NemeSys
  • 555
  • 1
  • 10
  • 28
0
votes
2 answers

How to add UIBarButtonItem to QLPreviewController

I already read this question QLPreviewController remove or add UIBarButtonItems but it's not what I'm looking for. I would like to keep the "Print" button in the navigation Bar but also add a new "Delete Document" button in the navigation bar. I…
Lolloz89
  • 2,809
  • 2
  • 26
  • 41
0
votes
2 answers

QLPreviewController and NSFetchedResultsController objectAtIndexPath returning nil

This code works at first touch. Preview starts to display (Title, Done, Actions, and blank page) and then previewController:(QLPreviewController *)previewController previewItemAtIndex:(NSInteger)index is called again. This time…
Kent
  • 1,374
  • 1
  • 15
  • 29
0
votes
1 answer

UIToolbar missing in QLPreviewController modal view

I've created a modal QLPreviewController with view of a PDF doc: [self presentModalViewController:preview animated:YES]; However it's missing a UIToolbar at the base of the controller's view. I had thought of supplying the toolbar myself; but I…
Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
0
votes
0 answers

QLPreviewController is not saving large sized PDF

I am using QLPreviewController with SwiftUI using UIViewControllerRepresentable. If I try to delete or insert pages of large size PDF, QLPreviewController is not calling delegate methods (didUpdateContentsOf, didSaveEditedCopyOf). struct…
InseobKim
  • 1
  • 1