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
3
votes
1 answer

Display an ALAsset using QLPreviewController

I'm wanting to use QLPreviewController to display ALAssets from the Photo Stream QLPreviewController needs an NSURL to display the item This works great when it is a File URL such as /var/mobile/Applications/5374......9E0/Documents/image33.png I…
NewDev
  • 257
  • 1
  • 5
  • 18
3
votes
1 answer

Allow Rotation for QLPreviewController independent of parent View

my app doesn't support rotation. But I want to present a QLPreviewController that supports rotation. I present the QLPreviewController like this: [self presentModalViewController:thePrevController animated:NO]; How can I do this?
arnoapp
  • 2,416
  • 4
  • 38
  • 70
3
votes
1 answer

Customize action sheet of QLPreviewController

I want to add another menu item to the action sheet, other than the print item. I have written a custom QLPreviewController. So looking to add email button below to the print button of the action sheet. please help....
2
votes
1 answer

QLPreviewController vs UIWebView -- Pros / Cons

Does anyone have experience with pros and cons of using QLPreviewController vs UIWebView to open pdf and office document? And benchmark data ? Thanks!
Qiulang
  • 10,295
  • 11
  • 80
  • 129
2
votes
0 answers

Open QLPreviewPanel in 'multi display' mode

I'm using QLPreviewPanel to display the contents of a folder. By default this shows the first item and then the user can tap the multi display button to display them all. I would like to go into multi display by default but I can't see a way to do…
NeilInglis
  • 3,431
  • 4
  • 30
  • 31
2
votes
2 answers

QLPreviewController in Monotouch

I want to open PDF files using QLPreviewController in Monotouch, but I can't to do this. QLPreviewItem is an abstract class, but object of this type returns method : QLPreviewControllerDataSource.GetPreviewItem(QLPreviewController, int) Anybody has…
alexmac
  • 19,087
  • 7
  • 58
  • 69
2
votes
1 answer

QLPreviewController as subview

I have a little problem with the use of QLPreviewController. Indeed, I have to display a PDF in my application and this class works fine if I push the controller in the UINavigationController application. For this, I use this tutorial :…
neilaur
  • 71
  • 6
2
votes
0 answers

Crash when attempting to present QLPreviewController

I am trying to present a QLPreviewController for a single UIImage. My preview item is as follow: final class PreviewItem: NSObject, QLPreviewItem { let url: URL init(url: URL) { self.url = url } var previewItemURL: URL? { …
Kex
  • 8,023
  • 9
  • 56
  • 129
2
votes
1 answer

How to implement not full screen file preview on ios

I know QLPreviewController could do this. But it's full screen, my requirement is preview files in a subview. I tried use a offline window to present the QLPreviewController, and then make a screenshot of the offline window. The problem is i have to…
jim.huang
  • 1,052
  • 2
  • 9
  • 14
2
votes
1 answer

Hide or disable share button from uidocumentinteractioncontroller in swift 5

In my application, I'm using the QuickLook framework to view the document files such as pdf, ppt, doc, etc. etc. But due to privacy concerns, I don't want that the user can share this document with others so please let me know how to disable/hide…
2
votes
1 answer

How to display .doc files in QLPreviewController swift language

I am new to ios developement, i am trying to display file with different format (ex. docx,doc,pdf,csv) , it is working fine with .pdf files but for .doc files its not previewing.enter image description here This is what showing in simulator For some…
iosseeker
  • 21
  • 1
  • 3
2
votes
5 answers

Can't hide share button in USDZ + QLPreviewController

I got a project that involves a few USDZ files for the augmented reality features embedded in the app. While this works great, and we're really happy with how it performs, the built-in share button of the QLPreviewController is something that we'd…
iOS.Lover
  • 5,923
  • 21
  • 90
  • 162
2
votes
0 answers

How to check if QLPreview is loaded?

I have QLPreviewView and I need to check if the preview is loaded in n seconds after assigning QLPreviewItem. QLPreviewView and QLPreviewItem don't have any events for loading and any fields to check it, so I came with checking view hierarchy. It…
2
votes
1 answer

How to remove file after QLPreviewController is dismissed?

My app requieres to download and show files in a QLPreviewController. In some situations, this files must be temporary, that is, after user finish the QLPreviewController, files should be deleted from internal storage. I was trying to call a…
Isaac Bosca
  • 1,588
  • 1
  • 15
  • 34
2
votes
1 answer

ios - Control copy and share file with other apps in qlpreviewcontroller or UIDocumentInteractionController

Current implementation. UIWebView is added to a view and file is loaded in that. Here I can control copy option with "UILongPressGestureRecognizer" and also control whether to allow sharing with other apps using "documentInteractionController…