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 - MailCompose not dismissing in iOS8

I have a very strange (& serious) problem. My app uses a UIDocumentInteractionController to share a PDF document. When the user selects the "Mail" option in the controller's pop-up the MailCompose window is opened. But, neither the Send nor Cancel…
Matthys Du Toit
  • 2,168
  • 3
  • 21
  • 34
1
vote
1 answer

Can I show an App Extension with an UIDocumentationInteractionController?

I' using an UIDocumentationInteractionController to show all compatible apps which can open the files stored in my app. It has always worked well, however I have noticed that with iOS 8 it shows only the apps and not the App Extensions. In the…
1
vote
0 answers

Document interaction controller shows options but when tapped on any option just hides menu

I am using the below code and getting true, but when tapping any option from the available, just hides the menu which is presented rather than opening the respective app. self.docController = [ UIDocumentInteractionController…
1
vote
3 answers

UIDocumentInteractionController doesn't take into account navigation bar tint color

One of the screens in my app shows a preview of a local image and I have an action button in the top left corner that I'm using to present document interaction options: - (IBAction)actionButtonTapped:(id)sender { self.interactionController =…
Sebastien
  • 3,583
  • 4
  • 43
  • 82
1
vote
1 answer

Filter apps that UIDocumentInteractionController suggests to Open In

Is it possible to manage the list of apps that UIDocumentInteractionController is going to present for opening my file in? Actually, I need to create black and white lists of apps. I took a look at UIDocumentInteractionControllerDelegate but it…
Stas
  • 9,925
  • 9
  • 42
  • 77
1
vote
1 answer

skip presentOpenInMenuFromRect in UIDocumentInteractionController

I want to share an image via whatsapp. I'm using UIDocumentInteractionController with the following code. Can I skip the menu that is opened (and the user selects whatsapp) and just act as if he selected the first option? if ([[UIApplication…
Boaz
  • 4,864
  • 12
  • 50
  • 90
1
vote
1 answer

Sharing photo to Instagram

I'm trying to share a photo to Instagram. So far my method is like this: - (void)shareToInsta:(UIImage *)finalImage { NSString *savePath = [NSHomeDirectory() stringByAppendingString:@"Documents/instagramTmp.igo"]; …
Lucas Domene
  • 284
  • 1
  • 2
  • 16
1
vote
1 answer

UIDocumentInteractionController and PDF

I can successfully open png files, but when I try to open pdf, the preview says "Portable Document Format" without showing the content. self.docInteractionController.UTI = @"com.adobe.pdf"; if ([operation isEqualToString:@"open"]) …
gdm
  • 7,647
  • 3
  • 41
  • 71
1
vote
1 answer

Share image through WhatsApp, just show WhatsApp icon

I use this piece of code, but it shows other apps. NSURL *URL = [[NSBundle mainBundle] URLForResource:@"ABC" withExtension:@"png"]; if (URL) { self.documentInteractionController = [UIDocumentInteractionController…
user3667646
  • 95
  • 3
  • 7
1
vote
1 answer

Automatic selection of the destination App in UIDocumentINteractionController without presenting the available Apps

I am developing and App for sharing an audio file with Whatsapp. Since, I am only focused on Whatsapp, I am not interested on showing other available apps such as VLC or Telegram. Can I select Whatsapp App to share the file without presenting the…
CRoig
  • 691
  • 5
  • 24
1
vote
1 answer

Allow preview option for PDF through UIDocumentInteractionController

Hi all, I'm creating a UIDocumentInteractionController to display a .pdf file which is saved locally in my app's document folder. Here is the code: if (theURLOfTheFile != nil && [theURLOfTheFile path] != nil && [[NSFileManager …
Emile Victor
  • 923
  • 1
  • 12
  • 22
1
vote
1 answer

Post to instagram directly with Document Interaction Controller

in my application I manage to post an image to Instagram through a Document Interaction Controller. This one shows also options for sharing on Dropbox, whatsapp, etc.. I don't want these features, I just want Instagram. Is there a way to…
charles
  • 713
  • 1
  • 6
  • 16
1
vote
0 answers

Objective C- PDF viewer not showing chinese characters

I am working on the project on which I have to show the report coming from service. I get bytes array of PDF file from server end. It contains some english and some chinese language in Arial Unicode MS font. When I get the byte array, I pass it to…
1
vote
1 answer

Displaying UIDocumentInteractionController in Detail View

In my Split View Controller I have a list of documents in a Table View on the left. When a user selects a document, I want to display the document in the Detail View on the right. However, when I select a document, the documentInteractionController…
1
vote
1 answer

Open image in gallery by using UIDocumentInteractionController

I have many file types in my app and I have to let the user open the files while staying in the app. For example, I have PDF files and photo from the photo album. I read that UIDocumentInteractionController can open whatever file type I want. My…
gdm
  • 7,647
  • 3
  • 41
  • 71