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

Can not open USDZ file with QLPreviewController

I am using Quicklook to preview files. There was a issue previously in iOS10.x, showing this Service Connection Interrupted error while repeatedly opening the same file. And this was supposed to be fixed in iOS11. Now in iOS12, I am getting the same…
nOOb iOS
  • 1,384
  • 2
  • 19
  • 37
4
votes
3 answers

QLPreviewController not work on iOS11

class ViewController: UIViewController { let quickLookController = QLPreviewController() override func viewDidLoad() { super.viewDidLoad() quickLookController.dataSource = self quickLookController.delegate = self …
4
votes
0 answers

QLPreviewController can not preview any file on iOS11

My old app is having a problem with QLPreviewController on iOS11 that it suddenly can not preview any file while it worked just fine on iOS10, when I try to skip step to check if can preview the file I got below message: Unsupported preview item…
Son Nguyen
  • 3,481
  • 4
  • 33
  • 47
4
votes
2 answers

How to Subclass QLPreviewController and Disable Share button?

I have done code like this but it's open QLPreviewController but Share button was not disabled. I have tried different things but it's not worked. - Or You Can Suggest me any different Preview Controller in which i can Disable Share…
4
votes
1 answer

QLPreviewController - setting previewItemTitle

I can't work out how to set the previewItemTitle property for my QLPreviewController class. Its seems a bit strange as the iPhone developer document for this class says that that property is @property (readonly) which would mean that I cannot set…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
4
votes
0 answers

Disable swipe gesture in QLPreviewController

I am trying to preview the Images/Video/PDF in UICollectionViewCell (full screen). for PDF I am trying to use the QuickLook framework. Here is what I am trying to do, CollectionView CollectiViewCell QLPreviewController.view as subview of…
4
votes
0 answers

unable to set QLPreviewController title for list of Files

Everytime i pass a list of files to QLPreviewController its title shows "1 of 100" , "2 of 100" etc. Even when i have passed the file name to its QLPreviewitem's property "previewItemTitle" in its delegate method "previewItemAtIndex". - (id…
Shirish
  • 295
  • 3
  • 19
4
votes
4 answers

Is it possible to remove the navigation bar from QLPreviewController

I currently have a UIView that programmatically has an embedded QLPreviewController in it. I need to get rid of the default navigator bar that the QLPreviewController has when the document/url is loaded. Is there a way to do this? Currently, I've…
4
votes
0 answers

ios show image on qlpreviewcontroller

i am trying to preview image on qlpreviewcontroller. i had implemented these methods. - (NSInteger) numberOfPreviewItemsInPreviewController: (QLPreviewController *) controller { return 1; } - (id )previewController:…
ShujatAli
  • 1,376
  • 2
  • 14
  • 26
4
votes
2 answers

iOS QLPreviewController show pdf saved to file system

I have QLPreviewController working if I show a PDF file system from my bundle on the project, like this example but If I want to show a PDF from the file system, it doesnt show it, how can I call a pdf file that I have just downloaded in my file…
manuelBetancurt
  • 15,428
  • 33
  • 118
  • 216
4
votes
5 answers

QLPreviewController hide bottom toolbar

I use QLPreviewController in my app and want to hide bottom toolbar which allows to move through it's datasource items. Is it possible to do somehow? I tried to search it as a subview of QLPreviewController's view but it has only one subview of…
B.S.
  • 21,660
  • 14
  • 87
  • 109
4
votes
0 answers

QLPreviewController VS UIWebView in terms of render efficience and memory usage

I am working on an iPad project which lets users browse local docs, ppts, pdfs and etc.. I have two options to display these files: First, I can use UIWebView to display them; Alternatively, I can use QLPreviewController to display them. From…
Phineas Lue
  • 317
  • 4
  • 15
4
votes
2 answers

Pdf from the web show with QLPreviewController

I try to show with QlPreviewController a pdf from internet url without download it. This is my code: NSURL* url2 = [NSURL URLWithString:@"http://wwww.myweb.com/files/terms_en.pdf"]; // Check if can be shown if(![QLPreviewController…
Anna
  • 189
  • 1
  • 8
4
votes
5 answers

Invalidating QLPreviewController "cache"

QLPreviewController seems to cache file contents based on the local file's URL. In my application, the file contents can be updated remotely and would cause the new contents to be downloaded. If I view a file in QLPreviewController, update it…
cozykozy
  • 217
  • 1
  • 9
4
votes
1 answer

iOS 6 UIGestures (Tap) stops working with QLPreviewController

Currently I'm using a QLPreviewController in a navigation controller. (pushViewController) To hide the navigationbar I use a UITapGestureRecognizer. The user can show/hide the navigation bar by a single touch (tap). This worked well in iOS5 -…
Jonathan
  • 480
  • 6
  • 9
1 2
3
18 19