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 with Core Data as data source

I am trying to preview common files by using QLPreviewController. The files I have stored are stored in Core Data. The problem is that QLPreviewController asks for a URL to the file, which I don't have. Is there a way of combining…
Jorn
  • 1,054
  • 9
  • 25
0
votes
1 answer

QLPreviewController customise the title color of the navigation bar?

I can not create a custom QLPreviewController. Can someone help me with the code?
0
votes
0 answers

QLPreviewController fail to load video files

I am facing some issue while trying to open video file on QLPreviewcontroller. While trying to open video file , i just see a thumbnail of video file loaded & dont see any playback controls or any controls. Neither video seems playing nor any audio…
Ritika
  • 593
  • 1
  • 8
  • 21
0
votes
2 answers

E-mail account information with QLPreviewController

I am using QLPreviewController for showing the pdf. And I am sending pdf by tapping the share button and then tap on email in the QLPreviewController. But i don't know how to get that share button method in QLPreviewController to validate that the…
Sarabjit Singh
  • 1,814
  • 1
  • 17
  • 28
0
votes
8 answers

Hide right button n QLPreviewController?

I am subclassing QLPreviewController in my application and using the following code. QLPreviewControllerSubClass* preview = [[QLPreviewControllerSubClass alloc] init]; [self presentViewController:preview animated:YES …
Jeff
  • 1,405
  • 3
  • 26
  • 46
0
votes
1 answer

How to enable Paly/Pause through the SpaceBar for QLPreviewController

I am working on a Cocoa Project . In my project I am dragging a media to my window and trying to view / play it using QLPreviewController.I got a requirement where I should play & pause my video when I click the space bar (after viewing it in…
Keerthiraj
  • 265
  • 2
  • 4
  • 10
0
votes
1 answer

QLPreviewController canPreviewItem: can't work for judging broken files

I downloaded file from network, but in advance I don't know what type of file, I name it as PDF file, thus destroying some files, I use QLPreViewController 's method “+ canPreviewItem” judging whether the file can be previewed, in my mind if the pdf…
0
votes
1 answer

Open a pdf saved in my documents folder in Xcode project

I have made an app that creates a pdf and stores it in the apps documents folder. I would now like to open it and view it from within the app when a 'View pdf' UIButton is pressed. I have already looked at a few questions on here and I have…
RGriffiths
  • 5,722
  • 18
  • 72
  • 120
0
votes
1 answer

Displaying Microsoft Office docs in ios view

I've been trying to use the QLPreviewController but it's a little inflexible. It comes with a few extra buttons and some printing option. It's also not modifiable ios6+. I'm trying to understand whether it's feasible to write my own previewer and if…
samonderous
  • 649
  • 1
  • 10
  • 22
0
votes
1 answer

QLPreviewController canPreviewItem doesn't work

It seems that QLPreViewController's method +canPreviewItem doesn't work. I've under currentAttachment value path to xls document, but it's xlsx document. if (![QLPreviewController canPreviewItem:[NSURL fileURLWithPath:self.currentAttachment]]) { …
Tunyk Pavel
  • 2,473
  • 6
  • 31
  • 46
0
votes
1 answer

how can i show the pdf hyper link data in popover in iPad apps?

i have worked pdf file reader in iPad apps using QLPreviewcontroller but i need to show the inside of pdf hyper link show on popover in iPad any one can help out. documentPath = [[NSBundle mainBundle] pathForResource:@"my_file" ofType:@"pdf"]; …
MOHAN.C
  • 315
  • 1
  • 11
0
votes
1 answer

Excluding email option from QLPreviewController in iOS6+

I was wondering if you can remove the mail option from the share menu in a QLPreviewController? I have searched up and down the documentation but couldnt find anything.
Tom Fobear
  • 6,729
  • 7
  • 42
  • 74
0
votes
1 answer

Disabling copy operation in QLPreviewController

Is there any way to disable copy of content when we are viewing a text file, in QLPreviewController? I tried to sub-class it and override- canBecomeFirstResponder and returned NO, but it did not work :-( Please suggest.
Devarshi
  • 16,440
  • 13
  • 72
  • 125
0
votes
2 answers

How can I change images for UIBarButtonItems of UINavigationController in QLPreviewController

I'm using QLPreviewController for showing a pdf. I want to change the background images for UINavigationBar and UIBarButtonItems of QLPreviewController. I'm using this code: for (id object in controller.childViewControllers) { if ([object…
0
votes
1 answer

Print Document opened in QLPreviewController with Right menu button?

I have opened the document (PDF) in QLPreviewController. I want to print that document on clicking right button on the top of the screen. I need code example to print it. I don't want email option over there. thats why I cannot use…
Amir iDev
  • 1,257
  • 2
  • 15
  • 29