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

How to remove top DownArrow and option also remove more option button in thumb in QLPreviewController?

In QLPreviewControllar How to Remove Down Arrow and onclick option popup behind right side of doc title in navigation bar and also remove more button and onclick option popup in doc thumb bar in iPad. and And also remove share button in iPhone I…
Nikunj
  • 655
  • 3
  • 13
  • 25
0
votes
1 answer

How to Customize QuickLook(QLPreviewControlller) navigation bar?

I am trying to remove all the right-side BarButtonItem in QuickLook (QLPreviewController) in iOS 15 and Xcode 13.2 and later. My requirement is to only show search button in right-side of navigation bar. I tried many types of solutions but I'm not…
Nikunj
  • 655
  • 3
  • 13
  • 25
0
votes
1 answer

How to prevent to open title menu of QLPreviewController in the Xamarin.Forms iOS?

I open a file using the QLPreviewController to preview it from within the Xamarin.Forms iOS app. I turn off the "Open In" button to prevent the file from being exported to the application in QLPreviewController. However, after the latest iOS update…
0
votes
0 answers

How to disable print option of QLPreviewController in the Xamarin iOS?

In my Xamarin.Froms application, on the iOS side, I open the files as preview with the help of QLPreviewController. When I open the preview and press the share button, the print option appears. (As in the picture below.) How can I turn this…
0
votes
1 answer

MAUI .NullReferenceException (Native iOS QLPreviewController)

I am having a problem running after through the QLPreviewController interface. view.PushViewController(previewController, true); QLPreviewController starts up and displays what it should. At this point, UIApplication.Main(args, null,…
0
votes
0 answers

App crash on iOS16 when presenting a QLPreviewController

When I try to present the QLPreviewController, the app crashes, and I can see the log as shown below. *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSPlaceholderDictionary…
0
votes
0 answers

Swiftui navigation link to a qlpreview - property initialisers run before 'self' is available

Very new to coding and trying to teach myself swift. Running into a problem that I am having trouble understanding. Apologies if my code is a mess or my question is not clear. I am creating a navigationview from a list I have created. I would like…
0
votes
1 answer

How to remove the edit button of QLPreviewController(swift)?

I'm using QLPreviewController to present PDF files, but there is an edit button on the right of the navigation bar(right top of screen). I don't want the edit button . How can I remove it? I found I can't customize the navigation bar right button of…
0
votes
0 answers

Is there a way to add a cancel button to `QLPreviewController`

I want to use QLPreviewController to edit images in my app. Just using vanilla code to present this: override func collectionView(_ collectionView: UICollectionView, didSelectItemAt indexPath: IndexPath) { collectionView.deselectItem(at:…
Kex
  • 8,023
  • 9
  • 56
  • 129
0
votes
1 answer

QLPreviewController is not working for xls,docs,txt,csv file formats iOS Swift

Using QLPreviewController for opening the multiple type document.It's only working in PDF case not other formats.I'm using this condition mimeType.hasPrefix("docx") and other file formats and execute the further code otherwise will go to else…
Faheem
  • 97
  • 5
0
votes
0 answers

How to open attachment in Android app without using WebViewActivtiy

My app get a url string from an api call. I show an icon on my UI and when user clicks on it I want to open the pdf so users can preview it and read it. If they want to download or share the attachment I want to support this functionality swell.…
0
votes
1 answer

Quick Look View - Reload View after changing Tab

I´m trying to display a Quick Look View directly - without a sheet Presenting the Reality File. If I start the App at the first time it works fine: when I'm switching between a TabView back to the first ModelView I don't the the reality Model…
Andx
  • 51
  • 4
0
votes
1 answer

How to enable QLPreviewController action buttons

I am working on document preview functionality. I have implemented QLPreviewController for document preview. I have successfully implemented a document preview but was not able to see the Action Button icon in the controller. Here code of presenting…
0
votes
1 answer

Unable to preview files with QuickLook

I am using this simple tool for previewing different files in my app, but none of them is being successfully previewed. First time I try to preview any file it opens preview controller with message Unsupported file format, and any other time it…
stackich
  • 3,607
  • 3
  • 17
  • 41
0
votes
1 answer

Does `QLPreviewItem` works with local files only?

I'm uploading images to firebase and in return I'm getting uploaded image URL as…
Harsha
  • 760
  • 1
  • 7
  • 21