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

previewController:shouldOpenURL does not call in iOS 10 (Objective c)

iOS 10 below delegate method does not fire. - (BOOL)previewController:(QLPreviewController *)controller shouldOpenURL:(NSURL *)url forPreviewItem:(id )item{ return true; } Actually when I open pdf file from QLPreviewController,…
Wanker Silva
  • 413
  • 4
  • 18
0
votes
1 answer

How to disable the long press gesture of a QLPreviewController

I have a UIView as the main view and add a QLPreviewController as the subview over that while previewing the document. I want to restrict the long press gesture so that no one can copy contents from the document. I have tried the following…
0
votes
0 answers

PDF READER IN IOS(OBJECTIVE _C)

User can change the page, zoom in - zoom out the page. We only need a special animation for page change event like a physical page flip.
SKR
  • 57
  • 5
0
votes
1 answer

QLPreviewController does not show some PDF files (it says "Loading" forever)

I use QLPreviewController is very simple way: I have NSMutableArray *_files; I launch it QLPreviewController* ql = [QLPreviewController new]; ql.dataSource = self; ql.delegate = self; [self.navigationController pushViewController:ql…
user996142
  • 2,753
  • 3
  • 29
  • 48
0
votes
1 answer

QLPreviewController - not displaying image from bundle?

This is my code... i've tried every path-format I can think of to get this to work... Basically I want to show an image in a quick and easy picture viewer... The viewer shows (modally... brilliant) but then the image dosen't show inside of that... I…
Thomas Clayson
  • 29,657
  • 26
  • 147
  • 224
0
votes
1 answer

Valid way to hide QLPreviewController RightBarButtonItem/RightBarButtonItems Xamarin iOS

My app supports iOS8+ devices. I want to hide right Action button from navigation bar. By research I found following few workarounds: 1. Create Sub class of QLPreviewController and in ViewDidAppear SetRightBarButtonItems to zero. public class…
user2618875
  • 889
  • 2
  • 11
  • 23
0
votes
1 answer

How to set delegate to UIActivityViewController of QLPreviewController?

My application's navigation bar buttons color is white.. So I used below code to set color for entire application. [[UIBarButtonItem appearance] setTintColor:fontColor]; QLPreviewContoller by default having option for UIActivityViewController so…
0
votes
1 answer

QLPreviewController and the new swipe down to dismiss Multi-tasking gesture in iOS 9

I use QLPreviewController to view images in my application. I'm supporting iOS 9 at the moment but still building with Xcode 6.4 (would love to upgrade but it's up to corporate when we go to the new Xcode). We use storyboards auto layout etc. I…
CodenameDuchess
  • 1,221
  • 18
  • 24
0
votes
2 answers

QLPreviewController behaves as an app of its own on Swift

I set the View controller-based status bar appearance to NO on info,plist. I also set application.statusBarHidden = true but status bar reappears automatically when the QLPreviewControl is presented. I don't want statusbar on my application. How…
0
votes
2 answers

Unbalanced calls to begin/end appearance transitions

When I am presenting a QLPreviewviewcontrolelr from my Viewcontroller, the runtime warning that appears in the log as Unbalanced calls to begin/end appearance transitions for . Can anyone please suggest me the solution to fix.
Lakshmi Reddy
  • 313
  • 5
  • 17
0
votes
1 answer

QLPreviewController crash on share iOS 9

I use QLPreviewController to preview images and pdf files. It works perfectly for iOS7-9. However, when I tap share button on device with iOS9, app crashes immediately with following exception: Fatal Exception: NSInvalidArgumentException ***…
0
votes
1 answer

Is it possible to dismiss keyboard in QLPreviewController

I'm using QLPreviewController as child view in my application, and want to dismiss keybord that is shown when I open password protected files. I was trying to change first responder and send -endEditing message, but nothing helps. Did anyone try to…
Mookker
  • 29
  • 7
0
votes
1 answer

Does iOS support PDF/A?

As the title states does iOS support PDF/A? I tried to open it, but mostly I get a white page with errors like illegal character `/' encountered in hex string. illegal character `/' encountered in hex string. invalid stream length 557; should be…
testing
  • 19,681
  • 50
  • 236
  • 417
0
votes
2 answers

QLPreviewController loses touch after presenting a modal view controller over it

In an iPad master-detail application (the master is an UITableViewController and the detail a QLPreviewController) whenever I present a view controller modally and then dismiss it, the QLPreviewController stops receiving touch events or at least…
lm2s
  • 388
  • 1
  • 7
  • 22
0
votes
1 answer

Some DOC Documents are not Displaying in iOS?

It's a weird problem, there are many different type files on my list such as pdf, ppt, xls etc, everything works fine with them but some doc files are not displaying. I use WebView, UIDocumentInteractionController, QLPreviewController to display the…
unbalanced
  • 1,192
  • 5
  • 19
  • 44