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

Disable pinch-in to dismiss gesture in QLPreviewController swift

I want to disable pinch-in gesture to dismiss gesture in QLPreviewController when present it. if I push the QLPreviewController everything work fine.
Leanghorn
  • 43
  • 6
1
vote
0 answers

.eml files are not shown in the qlpreviewcontroller-swift

I am trying to show the preview of the files downloaded from a server. The files are downloaded and I open those with the help of QLPreviewController. Many file formats are supported but .eml file attachment is not shown. I need to open the .eml…
Rahul
  • 11
  • 4
1
vote
1 answer

Hide the share option in context menu on text selection in QLPreviewController

I'm using sample code from [https://developer.apple.com/library/content/samplecode/DocInteraction/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010052] Run the above code, open the .txt file, long press on any text, the text gets selected and…
user1165756
  • 375
  • 3
  • 11
1
vote
0 answers

QLPreviewController does not show word document

I am trying to open a Word Document using QLPreviewController. The document is of kind: Microsoft Word 97 - 2004 document but when I QLPreviewController it just displays the files title with "Microsoft Word 97-2004 document" right bellow. When I…
user1001506
1
vote
0 answers

QLPreviewcontroller toolbar issue in iOS 11

I'm showing a local pdf file in Quicklook by presenting the QLPreviewController to the view controller func showFileWithPath(path: String){ let quickLookController = QLPreviewController() quickLookController.dataSource = self …
Nazik
  • 8,696
  • 27
  • 77
  • 123
1
vote
0 answers

How do I handle a file opened in the Files app to my ios app in appdelegate

I have a file stored in the documents folder of my application, and it's accessible through the Files App under {my_app_name}/my_file.txt. The file is accessible and modifiable by other applications. When I select the file in the Files app I want…
1
vote
1 answer

iOS/Swift: QLPreviewController shows blank page in iOS11

I've tried use QLPreviewController for file(.txt, .pdf, .docx, .xlsx, etc.) preview in my iOS project, but it is not working well in iOS 11: it shows blank page whatever use device or simulator. In iOS 10.3.1(simulator) it is working well, and…
Raymond Liao
  • 1,799
  • 3
  • 20
  • 32
1
vote
1 answer

qlpreviewcontroller navigation bar - How to Change "Done" button to "Back" or "Dismiss"

how to change the "Done" button title to "Back"? thanks in advance.
1
vote
1 answer

QLPreviewController is showing the document name instead of file content for the files coming from server

Using QLPreviewController for previewing documents like pdf , doc , xlsx but is is not showing the file content.The file to display is being fetched from server.I just want to show the pdf through the url link coming from server like an image is…
cherry_4
  • 158
  • 2
  • 17
1
vote
1 answer

QuickLook - canPreview w/o file downloaded

I'd like to know whether or not QuickLook supports a file before I download it so I can have a better UX flow. Anyone know if this is possible? It seems QLPreviewController.canPreview(item: QLPreviewItem) requires that the file be downloaded. Is…
sargturner
  • 540
  • 2
  • 18
1
vote
1 answer

How to hide action/share button from QLPreviewController Xamarin iOS 10?

I am subclassing QLPreviewController in my application and using the following code. var pController = new PdfPreviewController(); pController.Datasource = ---- this.MainDelegate.NavigationController.PushViewController(pController ,true); public…
San9211
  • 191
  • 1
  • 12
1
vote
1 answer

Laying white toolbar over QLPreviewController toolbar is looking gray

I stumbled upon this SO discussion on adding/removing qlpreviewcontroller's uibarbuttonitems. However they were removing the navigation bar and overlaying a new one on top of it. I was looking to change the toolbar primarily because the toolbar that…
sargturner
  • 540
  • 2
  • 18
1
vote
1 answer

Unable to add QLPreviewController as childViewController iOS10

I am trying to add QLPreviewController as childViewController. However I got no success on iOS10. I have checked this link.. No success. Here is my code: let previewController:QLPreviewController = QLPreviewController() previewController.dataSource…
ridvankucuk
  • 2,407
  • 1
  • 23
  • 41
1
vote
0 answers

Does QLPreviewController support in iOS 10 BMP files?

Has anybody tried to view BMP files in QLPreviewController? In my case same app, same code, same file is showing in iOS9.x but not in iOS10. This happens in Simulator as well as on real devices. Has anybody experienced this? iOS9: OK iOS10:…
ThorstenC
  • 1,264
  • 11
  • 26
1
vote
0 answers

share text and image using QLPreviewController

I have implemented QLPreviewController for social sharing i.e. What's app, Facebook etc. It is working great whenever I send particular image or text. But my requirement is to send the image and text simultaneously with one click. And I didn't find…
Minkle Garg
  • 723
  • 3
  • 9
  • 35