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

Sharing image to Whatsapp & Facebook

I'm already able to share photos to Whatsapp but the way I do this is by providing Whatsapp option in a UIActivityViewController and then showing a UIDocumentInteractionController. From this UIDocumentInteractionController, I choose the Whatsapp…
11
votes
2 answers

How do I save additional content into my UIManagedDocument file packages?

I'm having a lot of trouble deciphering Apple's documentation around UIManagedDocument, specifically the following methods: - (id)additionalContentForURL:(NSURL *)absoluteURL error:(NSError **)error - (BOOL)readAdditionalContentFromURL:(NSURL…
Tony Arnold
  • 2,738
  • 1
  • 23
  • 34
11
votes
6 answers

Change color of UIDocumentInteractionController nav bar

Is there a way to change the tint/background color of UIDocumentInteractionController navigationbar?
Yogesh Agarwal
  • 2,610
  • 3
  • 27
  • 31
11
votes
5 answers

UIDocumentInteractionController takes long time to show options

I have used UIDocumentInteractionController for sharing the files but it open menu options after 25 seconds in iOS 8 beta 5 and works fine in iOS 7.1. I have verified the log which I pasted below Errors encountered while discovering extensions:…
Prashanth
  • 463
  • 3
  • 13
11
votes
2 answers

UIDocumentInteractionController no longer works in iOS6

I have an app that shares with instagram built for iOS5 and now in iOS6, sharing no longer works although canOpenURL returns true and code executes. The images are saved to the documents folder of the application with a .igo extension. This is…
Nick Pirollo
  • 191
  • 2
  • 12
10
votes
3 answers

How to add event in native IOS Calendar

I want to open native IOS calendar(ical) from my application and add event. Is there any way i can open calendar for particular event? I also follow Open iphone calendar app programmatically but not yet succeeded.
Akshay Nalawade
  • 1,447
  • 2
  • 14
  • 29
9
votes
1 answer

iOS - Send Image to Instagram - DocumentInteraction

Would it be possible to share a picture to Instagram bypassing the Action Share Sheet? Please Note that I am aware of the UIDocumentInteractionController and the hooks and in fact it works fine. With their sample code you get a Copy to Instagram…
Martin Marconcini
  • 26,875
  • 19
  • 106
  • 144
9
votes
1 answer

iOS Swift - Share on Instagram with captions

I am able to successfully share an image on Instagram using the UIDocumentInteractionController, but the InstagramCaption key won't work. This is my code: self.controller = UIDocumentInteractionController() // controller.delegate =…
Christopher Francisco
  • 15,672
  • 28
  • 94
  • 206
9
votes
0 answers

Sharing video to instagram with UIDocumentInteractionController

How do you share an .mp4 video file to Instagram? I can share images like this: NSString* filename = [NSString stringWithFormat:@"testImage.igo"]; NSString* savePath = [imagesPath stringByAppendingPathComponent:filename]; …
soleil
  • 12,133
  • 33
  • 112
  • 183
9
votes
4 answers

UIDocumentInteractionController Open Menu Cancelled Callback

I am currently developing an application specifically for iOS7 that utilizes UIDocumentInteractionController open in menu and need a method that notifies me when a user cancels and does not choose an available…
morcutt
  • 3,739
  • 8
  • 30
  • 47
9
votes
1 answer

UIDocumentInteractionController unable to add ics file to calendar

I am trying to open an ics (Calendar) file within my iOS application. For debug purposes i have added a ics file to my bundle of a calendar event created within iCal. I am using UIDocumentInteractionController to present the data of the calendar…
Dan
  • 1,447
  • 2
  • 14
  • 30
9
votes
2 answers

UIDocumentInteractionController prevent Airdrop in the 'Open in' sheet

In my app, I'm allowing users to share photos via Instagram, which requires the use of UIDocumentInteractionController. Airdrop is automatically detected if the phone supports it. How do I remove it from this ‘Open in’ action sheet? Even if I…
EHNole
  • 199
  • 3
  • 13
8
votes
1 answer

iOS App-to-App Trasnmission of Data using new Document Support API

Problem: Building Enterprise Applications of a Suite Nature, and need to be able to pass data from one application to another. Example: App1 is a barcode reader that produces and inventory list. App2 needs a "fresh" copy of the same inventory…
Newbyman
  • 1,144
  • 10
  • 14
8
votes
0 answers

iOS app which handles URLs is not showing up in "Open in..." menu (eg. in Safari)

When clicking the 'share' button in iOS Safari (either from the toolbar, or by long-pressing a link), I would like my app to be visible as an "Open in..." option (eg. "Open in News"), so that my app – which is another type of web browser – can open…
Jamie Birch
  • 5,839
  • 1
  • 46
  • 60
8
votes
1 answer

Share video to Instagram on iOS

Is it possible to share a video on Instagram without saving it to the user's Camera Roll? this is what i tried so far: let instagramURL = URL(string: "instagram://app")! if (UIApplication.shared.canOpenURL(instagramURL)) { …
Eyal
  • 10,777
  • 18
  • 78
  • 130
1
2
3
22 23