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
2
votes
0 answers

Display photo from library on QLPreviewController

I would like to use QLPreviewController to display an image that was previously selected from the library using UIImagePickerController. I can get its url like this: let url = info[UIImagePickerControllerReferenceURL] as! URL This url starts with:…
Damian Dudycz
  • 2,622
  • 19
  • 38
2
votes
1 answer

previewController previewItemAt not being called. iOS 10, swift 3, simulator

I created a new view controller in storyboard. Connected it to the ListViewController. The ListViewController fills in the correct data to aboutDict[String:Any]. The fileURLs[] is built and func numberOfPreviewItems(in: QLPreviewController) -> Int…
Kent
  • 1,374
  • 1
  • 15
  • 29
2
votes
1 answer

How can I get the thumbnail of a QuickLook Preview Item?

I'm previewing various documents using QLPreviewController. The controller has a "list view" option where it displays the image and title of all of the documents in the controller. How can I get that image so I can display it on a different…
sargturner
  • 540
  • 2
  • 18
2
votes
0 answers

ios 9 qlpreviewcontroller shows gray screen

When I try to load PDF file by using QLPreviewController, it shows grey screen and shows PDF thumbnail. Please advice.
2
votes
0 answers

QLPreviewController load document from URL with basic authentication

I want to use a QLPreviewController and load a file from an URL. I use this delegate function to return the URL for the file i want to preview: func previewController(controller: QLPreviewController, previewItemAtIndex index: Int) ->…
Lord Vermillion
  • 5,264
  • 20
  • 69
  • 109
2
votes
1 answer

Detect when user opens file in app

I was reading this documentation on how to preview a file on my iOS…
nhenrique
  • 874
  • 1
  • 16
  • 35
2
votes
1 answer

QLPreviewPanel in tableview with issue: "has no controller"

I would like to display the urls from a table view in a QLPreviewPanel but i got this error: [QL] QLError(): -[QLPreviewPanel reloadData] called while the panel has no controller - Fix this or this will raise soon. My table controller already…
2
votes
1 answer

CGPDFPageRef not rendering FreeText annotations

I am using CGContextDrawPDFPage to draw pdfs in a layer using standard techniques as mentioned here . The PDF Viewing is perfect for most of the pdfs. However FreeText Annotations in the PDF are not rendered at all. QLPreviewController successfully…
Qamar Suleiman
  • 1,228
  • 2
  • 18
  • 31
2
votes
0 answers

Unbalanced calls to begin/end appearance transitions for

There are a number of posts very similar and I've tried the suggestions from those but the error message persists. I don't believe I had the issue until going to IOS 8 but can't be sure. I am previewing a PDF document. From a Master/detail view…
Paul
  • 79
  • 11
2
votes
1 answer

Issues trying to preview big files with QLPreviewController

I'm having issues trying to preview big files in my iPad app. In the app we use UIDocumentInteractionController. When we try to open big files (> 100 MB) the UIDocumentInteractionController only shows a grey screen with the name and size of the…
Carlos
  • 1,121
  • 12
  • 26
2
votes
0 answers

QLPreviewController shows blank page in iOS8 inside UINavigationController, but not independently

This is a follow up question to Quicklook/QLPreviewController shows a blank page instead of pdf on ios 8 but works fine on iOS7. In the last answer's comments, it appears as if someone got nesting a QLPreviewController inside a…
tanya
  • 508
  • 4
  • 12
2
votes
2 answers

QuickLook/QLPreviewController(QLPreviewItem) change title in iOS8 in iOS7 works fine

I'm trying to preview my documents/pictures using QuickLook library. Everything was fine when I wanted to open the content in both ios7 & ios8. I want to change the name of the item found in the preview. Everything is fine on iOS7 but when…
Tyrone Prude
  • 362
  • 7
  • 19
2
votes
1 answer

QLPreviewController editing mode not working?

Are you able to edit images with QLPreviewController? For example, preview an image and crop it? If not, what is the editing property on QLPreviewController for? It doesn't seem to change anything. (Previewing files is working fine) Here is an…
Oliver Mahoney
  • 706
  • 1
  • 9
  • 17
2
votes
1 answer

Container view is expected to be populated at this point

i have a simple ios implementation. There is a tableviewcontroller embedded in a navigationcontroller and a qlviewcontroller in this implementation, navigationcontroller is embedded in a tabbarcontroller too. Actual tab lists a lot of image files,…
2
votes
1 answer

QLPreviewController sometimes does not show the document

I have a master-detail app where the master shows a list of documents, and the detail shows a preview of these documents. In the storyboard I have draw a UIView called vistaPreview. I have declared it in .h: @property (weak, nonatomic) IBOutlet…
javiazo
  • 1,892
  • 4
  • 26
  • 41