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
2
votes
3 answers

iOS7 QLPreviewController change navigation bar color?

How can i set the translucent property in QLPreviewController i have tried the below code but its not working QLPreviewController *previewer = [[QLPreviewController alloc] init]; // Set data source [previewer setDataSource:self]; [previewer…
Sunny Shah
  • 12,990
  • 9
  • 50
  • 86
2
votes
1 answer

iOS QLPreviewController Left to Right page swipe

The default implementation of PDF viewing using QLPreviewController is swipe pages top through bottom. Is there anyway I can make it work from left to right swipe? QLPreviewController *previewVC = [QLPreviewController…
Paresh Masani
  • 7,474
  • 12
  • 73
  • 139
2
votes
2 answers

QLPreviewController works on iOS 6; not on iOS 7

I've reviewed other posts regarding QLPreviewController not working under certain conditions. This one has me stymied: RHBlobCollectionand RHBlobView are model/view objects that respectively hold the collection of, and the individual displayable…
rsswtmr
  • 1,776
  • 5
  • 16
  • 26
2
votes
0 answers

Modal transition via presentViewController:animated ignores the animation

I am trying to display a QLpreviewcontroller on a UIVIewcontroller. -(void)showPreview{ if(!_previewController){ _previewController = [[QLPreviewController alloc] init]; _previewController.dataSource = self; …
2
votes
1 answer

How can I use QLPreviewController in iOS to display image or file using http address?

I' m trying to use QLPreviewController to display files located in the web by http address. For example I want it to display image located here: http://iosdevelopertips.com/wp-content/uploads/2011/05/preview.jpg In previewItemAtIndex I did…
JohnFerrito
  • 281
  • 2
  • 8
2
votes
0 answers

QLPreviewController crashing when tapping share button, internal consistency nib bundle error

I'm presenting a QLPreviewController modally. Everything works-- it pops up, shows the preview item and everything. However, once the share button is tapped, the app crashes on the device and in the simulator with this: 2013-05-03 20:10:53.563…
Josh Rieken
  • 2,256
  • 1
  • 19
  • 23
2
votes
1 answer

Issues with email attachment, PDF and CSV

I'm working with PDF generation,it generated the PDF, viewed using QLPreviewController, all worked fine except mail forwarding, I have two attachments of type .pdf and .csv. I have the following issues while emailing. sometimes no attachments while…
Mumthezir VP
  • 6,251
  • 6
  • 28
  • 57
2
votes
1 answer

QuickLook, remove all toolbar buttons except the done button

I am using Quicklook to show some PDF files, the user needs to just see the file and then click done. the default UI gives more options like the copy or print email. Also the UI shows arrows next to the done button that can navigate to other files…
Huang
  • 1,355
  • 2
  • 11
  • 28
2
votes
1 answer

DataSource Methods not calling When subclassing QLPreviewController

I am using QLPreviewController for displaying documents, to remove the share button i am subclassing QLPreviewController like below, @interface QuickLookViewController : QLPreviewController{ } And i am using the class as…
kiri
  • 1,977
  • 5
  • 27
  • 55
2
votes
2 answers

QLPreviewController hide print button in ios6

How can I hide the print button in QLPreviewController In IOS5, this code works QLPreviewController *previewController = [[QLPreviewController alloc] init]; previewController.dataSource = self; previewController.delegate =…
TimWen
  • 21
  • 2
2
votes
1 answer

iOS - QLPreviewController delay

I have an app that generates a PDF and displays it at the same time. As expected, there is about a 2-second delay between pressing the "Generate PDF" button and the QLPreviewController presenting the document. Not only that, it appears as though…
achiral
  • 601
  • 2
  • 11
  • 24
2
votes
3 answers

Using a QLPreviewController/UIWebView to preview Word documents which have merge fields

We are currently working on an iPad application which will have the following functionality: User provides credentials, logs in. Set of tasks are retrieved via a web service, which contain base64 encoded documents of varying formats. (.doc, .docx,…
Sam
  • 153
  • 2
  • 11
2
votes
0 answers

How to correctly dispose QLPreviewController?

I'm using QLPreviewController to preview files. But when I open big files memory grows and don't disposing. Ex: iPhone 4s, open 6 Mb txt and 5Mb txt after - app will freeze or crash. Look into Instruments - used memory 230Mb. I have field in…
aaa
  • 21
  • 2
1
vote
3 answers

Problems viewing UTF-8 encoded CSV file with umlauts in QLPreviewController

In my app, I generate a UTF8-encoded CSV file with CHCSVWriter and display it using QLPreviewController. The file may have some special characters, such as umlauts (ü, ä), and I have checked the files and they are being generated properly. However…
Jason
  • 14,517
  • 25
  • 92
  • 153
1
vote
1 answer

QLPreviewController does not show the icon correctly for picture file

I am testing Apple's DocInteraction sample app. On the simulator it works fine. But on the iPad, the icon for the picture does not show up. Any suggestion how to remedy this?
user523234
  • 14,323
  • 10
  • 62
  • 102