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

Can I limit export options in UIDocumentInteractionController?

I am generating a PDF in an ios App and exporting that via UIDocumentInteractionController. Because this is a medical app, the lawyer's will only let me export the file to iBooks. I'm not finding any means by which to limit export options, but…
nwales
  • 3,521
  • 2
  • 25
  • 47
1
vote
0 answers

UIDocumentInteractionController view doesn't show up

I am trying to share a pdf, that I create within the app, with other apps using UIDocumentInteractionController. The same thing was working with UIActivityViewController. To do that I call - presentOptionsMenuFromRect:inView:animated: method which…
1
vote
1 answer

iOS 9 UIDocumentInteractionController does not open file with the app

In previous iOS, I used this code and UIDocumentInteractionController to open a file, from my app, with another app. Since iOS 9, the UIDocumentInteractionController appears on the screen, I select the option "Copy to", but nothing happens. How can…
spacecash21
  • 1,331
  • 1
  • 19
  • 41
1
vote
1 answer

UIDocumentInteractionController in iOS 9 Not Showing Instagram App By Itself

I'm using the following Instagram hook to post an image to Instagram. In iOS 8, the Instagram app was showing by itself in the UIDocumentInteractionController, but in iOS 9 it shows other options alongside it. Anyone know why this may be and how to…
1
vote
0 answers

Whatsapp update and sharing video

I am making an app that shares a video through whatsapp. Implementation is super easy, and it worked well until the beginning of August. When you trigger WhatsApp with the DocumentInteractionController, the controller will propose 2 options for…
Zeretyh
  • 17
  • 1
  • 6
1
vote
1 answer

display local pdf file using UIDocumentInteractionControllerDelegate

I want to display a local pdf file using UIDocumentInteractionController Here is my code : pole = Pole.getWithMinor(minorBeacon) var address = pole.pdf if pole != nil { var urlpath = NSBundle.mainBundle().pathForResource(pole.pdf,…
Gregory Molette
  • 155
  • 1
  • 12
1
vote
0 answers

UIDocumentInteractionController disable copy

How to disable 'copy' option in the files that are displayed in the UIDocumentInteractionController? Looks like there was some delegate till iOS6 , which was then deprecated. So, what is the way to achieve this in iOS7 and later?
XiOS
  • 1,665
  • 2
  • 18
  • 22
1
vote
0 answers

How To Detect When User Tapped Screen while displaying a document in UIDocumentInteractionController

When I tapped the screen it looks like this I am using UIDocumentInteractionController in xamarin.ios But i need to find being full screen event. I mean, when i tapped the screen, it goes to the fullscreen mode but it doesnt hide navigationbar as…
unbalanced
  • 1,192
  • 5
  • 19
  • 44
1
vote
0 answers

uidocumentinteractioncontroller sending file URL besides image in Viber

I am using a standard UIDocumentInteractionController in my app, and provide it with a local image URL. However, once Viber is selected, it first sends a plain text message with the file URL and then the image. I only want to send the image…
Leo Starić
  • 331
  • 1
  • 4
  • 16
1
vote
3 answers

iOS UIDocumentInteractionController LaunchServices: invalidationHandler called

I'm having an issue when I try to Launch Instagram from my app. Everything works and I'm able to launch IG and even see the photo I sent etc. The problem is that the UIDocumentInteractionController is crashing my app. And YES I have done my…
Lavvo
  • 1,024
  • 3
  • 16
  • 35
1
vote
1 answer

EXC_BAD_ACCESS using UIDocumentInteractionController to sent Image to Instagram

I'm using this code to send and image (and eventually caption) to instagram: @IBAction func sendToInstragramPressed(sender: AnyObject) { var image = imagePreview.image var imagePath = NSString(format: "%@",…
jshbrmn
  • 1,737
  • 3
  • 22
  • 52
1
vote
3 answers

Whatsapp Image sharing not working

My class implements the UIDocumentInteractionControllerDelegate and I have the following property:@property (nonatomic,retain) UIDocumentInteractionController * documentInteractionController; if ([[UIApplication sharedApplication] canOpenURL: [NSURL…
Praveen
  • 45
  • 1
  • 11
1
vote
1 answer

Message sent to deallocated instance while using UIDocumentInteractionController for Instagram

I'm using UIDocumentInteractionController to share photo on Instagram, I am able to open action sheet (I don't know what should I call) for it, but when I tap on Open in Instagram it just crash, and message will be this, ***…
Hemang
  • 26,840
  • 19
  • 119
  • 186
1
vote
0 answers

Can't keep open the "open with" menu invoked from UIDocumentInteractionController (iPad iOS 8+)

I'm developing an iOS app for iPhone and iPad, and I have an issue. This is the code attached to a UIBarButton. - (IBAction)saveFile:(id)sender { NSURL *theRessourcesURL = [[self.webView request] URL]; NSString *filename = [theRessourcesURL…
origds
  • 1,047
  • 2
  • 11
  • 25
1
vote
0 answers

UIDocumentInteractionController does not open PDF, txt etc

I am trying to implement UIDocumentInteractionController to show previous of some file in my app. The problem is that any files I checked so far PDFs, txts, docs etc. is not shown. The issue is that I can see UIDocumentInteractionController showing…
BartoszCichecki
  • 2,227
  • 4
  • 28
  • 41