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
1
vote
1 answer

UIDocumentInteractionController working in iOS6 but not in iOS5

I am using UIDocumentInteractionController in MonoTouch and in the iOS6 Simulator and on iOS6 devices my code half works. However it does not work at all for iOS5 simulator/devices. Here is a sample class I made to test with in a sample…
Brad Moore
  • 316
  • 5
  • 23
1
vote
1 answer

Open ibooks programmatically with file in documents directory

Is it possible to open an .ibooks file within my documents directory automatically, without any UIDocumentInteractionController? Maybe by manipulating the url or something like this? I tried opening it via shared application but it didn't work…
Alexander
  • 7,178
  • 8
  • 45
  • 75
1
vote
1 answer

Add pdf file to iBooks by UIDocumentInteractionController but dont open file

I have small code to open pdf file from my application in iBooks using UIDocumentInteractionController. It works. But i just want to save and add file to iBooks library, not open it immediately, that means when user choose iBooks application from…
1
vote
1 answer

How can I open a file in another app using UIDocumentInteractionController?

I'm having trouble trying to open a file. I download a document file somewhere, and I have a viewer to view the file on my iPhone. I want my app to open the file to the viewer. Here's what I'm trying to do in -(IBAction)buttonPressed: dc =…
MoonSoo
  • 385
  • 3
  • 15
1
vote
0 answers

UiDocumentInteraction returns generic icons for images in iPad

I need to make a simple file viewer and this method returns icon images for files. + (UIImage *)imageForFile:(NSString *)filePath { NSURL *url = [NSURL fileURLWithPath:filePath]; UIDocumentInteractionController *c =…
egoroveo
  • 188
  • 1
  • 6
1
vote
2 answers

Opening a pdf inside the app breaks the design

I'm having some kind of problems with one thing, i'm making an app and i have a webview that shows a pdf file, and i have a button if clicked will call an UIDocumentInteractionController (open the pdf in a new window). I will leave screenshots to…
Rodolfo Matos
  • 303
  • 1
  • 3
  • 11
0
votes
1 answer

ios open pdf in ibooks from DocumentsDirectory

I'm trying to open a pdf I generated and saved in my document directory with other applications like ibook with this code: NSLog(@"Send PDF: %@", _pdfPath); NSURL *url = [NSURL fileURLWithPath:_pdfPath]; docController =…
Jpellat
  • 907
  • 7
  • 29
0
votes
1 answer

testing CFBundleDocumentTypes in simulator

I want to test opening files from other apps in my own app. I have figured out how to add CFBundleDocumentTypes in Info.plist, and it works fine on my device. But I'm wondering if it's possible to test this out on the simulator. It doesn't seem to…
Z S
  • 7,039
  • 12
  • 53
  • 105
0
votes
1 answer

How to make work UIDocumentInteractionController in MonoTouch

I am trying to open a *.epub file throught my application and I don't quite understand how to make it with the UIDocumentInteractionController class. I have seen the official IOS documentation and examples and some of the examples over the net but I…
David Diez
  • 1,165
  • 1
  • 11
  • 23
0
votes
1 answer

Enable direct transfer from iWork apps to my app

I am investigating the possibilities of making an app that can handle iWork's apps documents (Pages, Numbers, Keynote). I have made the app and have registered the Document types, but this only gets me as far as supporting Open In from other apps…
CracyD
  • 368
  • 4
  • 16
0
votes
1 answer

How do I open a file with unknown associations in iOS?

I think it's rather impossible, but will ask anyway. My application uses file association to open some types of files. What I need is to make file associations within my app. For example I have some files in my app's Documents folder and when user…
Olga Dalton
  • 829
  • 3
  • 15
  • 25
0
votes
1 answer

Open pdf/doc/xls in other iphone app with modification acknowledgment

I know how to implement inter-app communication. I did it with some examples. Now I need to send/share a doc/xls file with other application in my iPad/iPhone that have url schemes to open in such files. Questions How Can I find the list of…
Naveen Shan
  • 9,192
  • 3
  • 29
  • 43
0
votes
0 answers

Permission Denied when read a local file using Data(contentsOf: URL)

The file I'm reading is (let data = try Data(contentsOf: url) ...) url: file:///var/mobile/Containers/Data/Application/15666F33-0EA8-4F1B-BFBA-634EEE9FC97D/Documents/Attachments/Documents/test.numbers But an error was caught which says Permission…
0
votes
1 answer

Why is UIDocumentinteractioncontroller not showing a menu?

For a while I'm strugeling creating a custom titaniummodule. I'm trying to open a pdf in an otrher app. Everything seems to be correct (no warnings etc) But there is no menu showing when pressing the button in de navBar. Here is the code of the…
0
votes
1 answer

How do I obtain CFBundleTypeIconFiles info at runtime?

I have an app that work with pdf file. I added in the file Info.plist this: CFBundleDocumentTypes CFBundleTypeIconFiles iconPDF
Giorgio
  • 1
  • 1