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

Open a file without extension with QLPreviewController or UIDocumentInteractionController

Is there a way to open a file with QLPreviewController or UIDocumentInteractionController, knowing its UTI, but without a file extension in the NSURL? Thanks for your help!
Martin
  • 2,290
  • 1
  • 23
  • 28
4
votes
2 answers

Intercepting PDF Link Clicks using Quicklook Framework (QLPreviewController)

Is PDF Link handling available in Quicklook? I created a prototype, and the QLPreviewControllerDelegate method -(BOOL)previewController:(QLPreviewController *)controller shouldOpenURL:(NSURL *)url forPreviewItem:(id)item never gets called. When I…
3
votes
1 answer

QLPreviewController crashes with large documents

I'm using QLPreviewController object in order to load documents in my app. This is the code that loads the file: fileURL = [NSURL fileURLWithPath:appFile]; QLPreviewController *previewController = [[QLPreviewController alloc]…
NemeSys
  • 555
  • 1
  • 10
  • 28
3
votes
2 answers

QLPreviewController missing navigation bar in SwiftUI

QLPreviewController navigation bar missing when I presented in sheet. It looks like this : How can I show up top navigation bar or navigationItem? QuickLookController UIKit representable in swiftUI .sheet(isPresented: $showQuickLook, onDismiss:…
Hüseyin
  • 250
  • 1
  • 13
3
votes
6 answers

QLPreviewController's view

I just trying to get to QLPreviewController.view. Indeed, I want to catch a tap event on its view to show/hide toolbar etc. I am trying: QLPreviewController* qlpc = [QLPreviewController new]; qlpc.delegate = self; qlpc.dataSource = self; …
ensoreus
  • 69
  • 1
  • 8
3
votes
1 answer

Get Total Pages Count and Current Page QuickLook

I'm using 'QLPreviewController' to show document file (pdf/doc). Is there any way to get Total number of pages and also current page number? Or any other way to view pdf/doc and also get page counts. Like "9 of 9"- How to get that
Nitesh
  • 1,564
  • 2
  • 26
  • 53
3
votes
0 answers

Annotations in QLPreviewController

In offical apps by Apple (for example Mail) is option to make annotations to PDF via this set of buttons: I would assume that this is some kind of modified QLPreviewController or similar controller. Unfortunately I have not found any documentation…
Jan R.
  • 213
  • 3
  • 11
3
votes
2 answers

PDF preview in a table view cell

Help me making a PDF preview, in a UITableViewCell. As I have read the documentation of QLPreviewController and UIDocumentInteractionController, these 2 only allow a full screen preview but I need to make a tiny preview in a table view cell. How…
Oleg Danu
  • 4,149
  • 4
  • 29
  • 47
3
votes
1 answer

QLPreviewController NavigationBar barTintColor

When I self.present() QLPreviewController, its NavigationBarloses the color, which was implemented in AppDelegate. UINavigationBar.appearance().isTranslucent = false UINavigationBar.appearance().tintColor = UIColor.white …
3
votes
0 answers

How qlpreviewcontroller works?

I know how to use qlpreviewcontroller, but i am curious to learn what actually happened behind the scene of the controller. I am looking for a way to implement my own custom preview controller that allows me to do paginated swipe, horizontal layout,…
HungryMonkey
  • 121
  • 1
  • 4
3
votes
0 answers

QLPreviewController Overlay

I'm creating a QLPreviewController: func numberOfPreviewItemsInPreviewController(controller: QLPreviewController) -> Int { return 1 } func previewController(controller: QLPreviewController, previewItemAtIndex index: Int) -> QLPreviewItem { let…
Fabian Boulegue
  • 6,476
  • 14
  • 47
  • 72
3
votes
0 answers

QLPreviewController nav bar blocks PDF content

I'm working on a project that displays a PDF using QLPreviewController from two different views. One view pushes the QLPreviewController onto the base navigation, and the other one is a modal view that brings the QLPreviewController up in modal. I…
3
votes
1 answer

How to add QLPreviewController as Subview in objective C - iOS8

In previous iOS versions I used to add the QLPreviewController as a subview. It is very handy to use my own app headers and navigation bar but in iOS 8 it adds a white space just below the header. It is the space for its own navigator bar. You can…
buttcmd
  • 641
  • 5
  • 14
3
votes
2 answers

Navigation bar getting overlapped by status bar in QLPreviewController

I have been dealing with QLPreviewController for the first time and running into an issue of navigation bar getting overlapped by status bar. Below are the steps I ran into this issue with: Tap on UI to launch the QLPreviewController modally. This…
Abhinav
  • 37,684
  • 43
  • 191
  • 309
3
votes
1 answer

How do I get pdf page thumbnails to display in QLPreviewController

In iOS 6, I noticed that when I preview a PDF document using the UIDocumentInteractionController, it displays nice looking page thumbnails down the right side of the screen. However, if I display the same PDF using the QLPreviewController, those…
John Fowler
  • 3,173
  • 3
  • 18
  • 31