Questions tagged [uidocumentinteraction]

A document interaction controller, along with a delegate object, provides in-app support for managing user interactions with files in the local system

A document interaction controller, along with a delegate object, provides in-app support for managing user interactions with files in the local system. For example, an email program might use this class to allow the user to preview attachments and open them in other apps. Use this class to present an appropriate user interface for previewing, opening, copying, or printing a specified file.

More: UIDocumentInteractionController Class Reference

334 questions
2
votes
1 answer

UIDocumentInteractionController opening pdf in iBooks crashes

I have a test PDF file that I want to open in iBooks through my app. I saved it in my temp directory and I use this code to load it to iBooks: NSURL *targetURL = [NSURL fileURLWithPath:tempFullPath]; NSLog(@"Path is %@",…
Sergey Grischyov
  • 11,995
  • 20
  • 81
  • 120
2
votes
0 answers

How to open a document in other specific app - like Safari does it with iBooks when viewing a PDF - without using UIDocumentInteractionController?

If you view a PDF in Safari, it will show button in the toolbar that reads "Open in iBooks". As far as I know there is the custom URL scheme "itms-books:" for iBooks and that allows passing a file path. iBooks then seems to be able to copy the file…
Krumelur
  • 32,180
  • 27
  • 124
  • 263
2
votes
0 answers

UIDocumentInteractionController does not preview zip files

I use a UIDocumentInteractionController to display a preview of almost all document types in my app. Until iOS 5.1, zip files were handled by UIDocumentInteractionController - it did not preview the content but showed a placeholder. However,…
RunLoop
  • 20,288
  • 21
  • 96
  • 151
1
vote
1 answer

Send bundled PDF to iBooks from within app

I'm using the following code attached to a button, to attempt to open a PDF file in iBooks, but nothing's happening when I click the button. The method's definitely being called. - (IBAction)openDocs { NSURL *url = [NSURL…
Luke
  • 9,512
  • 15
  • 82
  • 146
1
vote
1 answer

"Expression Result Unused" in UIDocumentInteractionController

Be gentle! I only have a vague understanding of what I am doing. I'm trying to set the Name property of UIDocumentInteractionController with hopes that it will change the file name before it is sent to another application. I'm using the following to…
1
vote
1 answer

get the list of application through UIDocumentInteractionController

I am using UIDocumentInteractionController to open the list of available pdf application in my device when i click on button but now i want to display setting table which will show the list of all the application and user will be directlly redirect…
Aakil Ladhani
  • 984
  • 9
  • 32
1
vote
1 answer

setStatusBarHidden stops working properly after UIDocumentInteractionController's presentPreviewAnimated

So my app has the status bar set to be hidden like this in the AppDelegate. And it works as intended. [[UIApplication sharedApplication] setStatusBarHidden:YES]; Then I use UIDocumentInteractionController's presentPreviewAnimated like…
user523234
  • 14,323
  • 10
  • 62
  • 102
1
vote
1 answer

Using QLPreviewController to scroll through PDF horizontally

Hello i'm currently using QLPreviewController to view a pdf for a magazine app, but i want to have horizontal scrolling, i have got PSPDFKIT (think it's called that) and FastPDF to work fine but i don't have the money to pay for the liencese and…
1
vote
1 answer

File viewer for iOS

In my iOS app I need a file viewer that can read all common file formats such as: png, jpg, iWork files, MS Office files. Now I am using standard UIDocumentInteractionController and it's good except some points: no ability to hide "Open in"…
Kostia Kim
  • 469
  • 1
  • 6
  • 19
1
vote
1 answer

UIDocumentInteractionController or QLPreviewController can't zoom PDF on iOS5?

I use QLPreviewController to view PDF files in one of my apps. However, ever since iOS5, users can no longer pinch to zoom in/out of the PDF. This is terrible for iPhone users, as they can't read anything. I have also tried using…
DOOManiac
  • 6,066
  • 8
  • 44
  • 67
1
vote
1 answer

Using Markup via UIDocumentInteractionController

I am trying to support Apple's Markup of PDFs via UIDocumentInteractionController for files in my Documents folder on iPad. I want the documents edited in-place, so my app can load them again after the user is finished. I have set the Info.plist…
Drew McCormack
  • 3,490
  • 1
  • 19
  • 23
1
vote
1 answer

UIDocumentInteractionController dismissPreviewAnimated crashes

I can open a document interaction controller like this: UIDocumentInteractionController *documentController = [UIDocumentInteractionController interactionControllerWithURL:URL]; documentController.delegate = self; [documentController…
arlomedia
  • 8,534
  • 5
  • 60
  • 108
1
vote
2 answers

swift iOS: create UIDocument in app documents folder

i am looking for a way how to do it. I say option how to work with files which are alredy created but UIDocument can not initialized only from URL. So, here is my code and it does not work: weak var weakSelf = self let toFolder =…
1
vote
1 answer

Monotouch: UIDocumentInteractionController, view documents (pdf, word, excel and so on) How to?

I have a question for you and I don't know to resolve it. I'll try to explain this scenario. 1) My iPad app connects to a web server and can download documents. 2) Once downloaded, it can open the document. My questions are: first, is it possible to…
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
1
vote
1 answer

iPad open file with external program

Help me pleas. I need to find some way to open files with external application on iPad. More detail: I run my program and have a file that I have to open with external application. I need to get a list of programs installed on iPad, chose one of…
Gusev Andrey
  • 446
  • 5
  • 23