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

QLPreviewController - Select Object as Default

When using QLPreviewController to display a .usdz 3D Object. There are 2 viewing modes: AR and Object By default, AR is selected. I'd like the default selected to be "Object" and would like to also disable the Switch so that they can't view it in AR…
grantespo
  • 2,233
  • 2
  • 24
  • 62
0
votes
1 answer

QLPreviewController play item

If we have a QLPreviewController with video file inside, the video is loaded is a paused state. The user has to tap on play icon to make it play. I can't find any (legal) programmatic way to play the video, is there anything?
Nat
  • 12,032
  • 9
  • 56
  • 103
0
votes
0 answers

Display encrypted file using QLPreviewController on iOS 14.2

I have an encrypted excel file locally stored which I need to preview in my iPhone app.I use MicrosoftOffice App to decrypt and open, the display is normal. But I decrypt it with QLPreviewController and display "Decrypted failed". Moreover, the…
fanning
  • 1
  • 1
0
votes
1 answer

Is it possible to closing copy text on QLPreviewController

I develop Xamarin Forms app. And I use QLPreviewController for ios. I want to close copy text/text share, if document has text. Is it possible and how? I searched it as native. Some sources redirect me to UIDocumentInteractionControllerDelegate. But…
0
votes
1 answer

How to track share view open / close swift in QLPreviewController

Is there a way to track if the "share" view in QLPreviewController is presented and closed?
Reshad
  • 2,570
  • 8
  • 45
  • 86
0
votes
1 answer

Stop QLPreviewController from resizing in presented View Controller

I'm presenting a NavigationViewController in iPad app as formSheet, which works great. But in this presented NavigationViewController when I push QLPreviewController with one Image to display it resizes it self to fit the Image. This alone would…
rv7284
  • 1,092
  • 9
  • 25
0
votes
1 answer

How to add image to QuickLook that is stored in variable

I would like to add a couple of images that are stored in variables to a QLPreviewController. The QuickLook datasource requires a fileURL which I'm not sure how to get for an image that is stored in a variable and not in disk or in the project. Any…
0
votes
1 answer

Attempt to present Xamarin_Forms_Platform_iOS_NavigationRenderer whose view is not in the window hierarchy

Hello guys I got this issue: Attempt to present on whose view is not in the window hierarchy! Someone knows how to create a UINavigationController to open a PDF File in iOS I create the Dependecy Service for Android and iOS but only worked in…
0
votes
1 answer

QLPreviewController's tintColor is different the first time it is opened

The tintColor whenever I bring up the QLPreviewController is pink by default. I wanted it to be a specific color so I set it like so UINavigationBar.appearance().tintColor = UIColor.hexStringToUIColor(hexStr: "202020") This is what the method that…
0
votes
2 answers

QLPreviewController: Where is the temporary file located?

I am using QLPreviewController to fetch and view a remote PDF from my server. This works very nicely, since Apple built in a nice "Loading" graphic while the file is downloading. Now, I would also like to use UIDocumentInteractionController which…
Nic Hubbard
  • 41,587
  • 63
  • 251
  • 412
0
votes
1 answer

QLPreviewController detect when QLPreviewItem Changed

I have application that use QLPreviewController to show document from MS. Office. I use this controller to multiple files. I need to log which files that already viewed. But I can't find event that triggered when PreviewItem changed. I try to…
mas_bejo
  • 597
  • 2
  • 6
  • 22
0
votes
1 answer

Remove unwanted top space from QLPreviewController

In my application I have used a QLPreviewController to display some pdf files. Everything works fine, but there is an unwanted space in the top of content of QLPreviewController and couldn't find a way to remove it. This is how I wrote it. (Please…
Hanushka Suren
  • 723
  • 3
  • 10
  • 32
0
votes
0 answers

iOS, Objective -C How to Hide/remove UIDocumentInteractionController bar/share button from iPad?

I am showing a powerpoint file via UIDocumentInteractionController (Objective - C). The client needs to remove bar/share button from the navigation bar. I have tried and follow much instruction which I found on Google. But all are not working in my…
0
votes
2 answers

QLPreviewController not loading multiple files

I've embedded a QLPreviewController as a sub view controller in a view controller of mine and have setup the delegate and data source for it: qlPreviewController.delegate = self qlPreviewController.dataSource = self In my viewDidLoad, I'm…
LinusGeffarth
  • 27,197
  • 29
  • 120
  • 174
0
votes
2 answers

QLPreviewController works with URLs provided by UIDocumentBrowserViewController, but not with URLs generated manually

I'm using UIDocumentBrowserViewController combined with QLPreviewController to preview documents selected by users in UIDocumentBrowserViewController, which works perfectly fine. The pickedDocumentURL variable used by QLPreviewController is…