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

Download PDF file to cache directory does not work in swift

import UIKit class MOViewController:UIViewController, UIDocumentInteractionControllerDelegate { //my variable var documentController: UIDocumentInteractionController = UIDocumentInteractionController() override func viewDidLoad() { …
GTeckHan Goh
  • 97
  • 1
  • 3
  • 12
1
vote
1 answer

UIDocumentInteractionController doesn't work with Instagram

I need to share an image file to Instagram, and according to Instagram doc: https://www.instagram.com/developer/mobile-sharing/iphone-hooks/, I can use Document Interaction to implement this, but it just doesn't work. Here is my code: let…
NeoWang
  • 17,361
  • 24
  • 78
  • 126
1
vote
2 answers

How can I open a file out of memory in a UIDocumentInteractionController?

We are not allowed to store the files persistent but allow the customer to decide himself if he want to save it in a different app/send it somewhere. Sounds like a job for UIDocumentInteractionController but without the persistence part. Inside of…
bemeyer
  • 6,154
  • 4
  • 36
  • 86
1
vote
0 answers

Viewing visual Signature in iOS-App

I'm using the UIDocumentInteractioncontroller for displaying pdfs and images in my application. If i try to display a pdf with a visual signature, the signature is not shown. On the other hand, if I use the native mail app to preview the same pdf,…
1
vote
2 answers

Duplicate WhatsApp icon in UIDocumentInteractionController

I'm using the following code to share an image via WhatsApp -(void)shareImageUsingDocumentController:(UIImage *)image fileName:(NSString *)fileName UTI:(NSString *)UTI completion:(void (^)(SharingResult sharingResult))completion { if…
Mike
  • 788
  • 10
  • 27
1
vote
1 answer

documentInteractionController didEndSendingToApplication not being called. File not being transferred

Having issues with my UIDocumentInteractionController. I am trying to handle unsupported file types by transferring to apps that support them. Below is my relevant code. class AttachmentsView: UICollectionView, UICollectionViewDelegate,…
1
vote
0 answers

UIDocumentInteractionController open url

I have url with pdf extension. On tapping the url, I want to show user with options to open URL with apps (which should include safari browser as well). I might achieve this by first downloading file from url in document directory and then open the…
Nitish
  • 13,845
  • 28
  • 135
  • 263
1
vote
2 answers

UIDocumentInteractionController Action/Options menu not visible in first launch

Action/Options menu is not visible in the first launch, it appears when I go to full screen mode and come back to normal mode. Attached screenshots for reference. What am I doing wrong? Here is the code: let docController =…
Dee
  • 1,887
  • 19
  • 47
1
vote
2 answers

Disable Share Extension options when use UIDocumentInteractionController and UIActivityViewController

I use to use UIDocumentInteractionController and UIActivityViewController to share data with a special UTI. However, when other app use Share Extension, there will may options when share interface popup, such as copy tp xxx and import to xxx. How…
1
vote
0 answers

iOS 10 UIDocumentInteractionController PDF Preview Very Slow to Display and Dismiss

I am using a UIDocumentInteractionController to preview small PDF files (approx 83K). I noticed on iOS10 when calling presentPreviewAnimated that the preview takes a very long time to load the document (5+ seconds). While loading, a blank white…
Coder1980
  • 11
  • 2
1
vote
1 answer

Is there any way to change the title colour of UIDocumentInteractionController?

I am trying to change the default title colour of the view presented by UIDocumentInteractionController? The default color is balck and the only property available is title.
1
vote
1 answer

How do you add a "Open in.." Function to a custom UIWebview?

I am trying to make a "Open In..." function with UIDocumentInteractionController() Using a UIwebview. My goal is to have users be able to navigate a website and press the "Open In..." button to push a PDF/DOCX from a website to another app like…
1
vote
2 answers

How to have "Copy To (My app)" on a UIDocumentInteractionController

How can I have a "Copy To MyExampleApp" in a UIDocumentationController. The file types can be any : pdf,pptx,doc,txt ... P.S : Objective-C code will be helpful. Thank You !
Omkar Jadhav
  • 1,046
  • 3
  • 16
  • 41
1
vote
1 answer

presentOpenInMenuFromRect does not show up

presentOpenInMenuFromRect doesn't show up even though canOpen returns true. I'm trying to pass a .mov video to Whats App. I'm running iOS 9 on an iPhone 5S. I've tried CGRectZero and also other views, but I never see the popup at all. I'm using a…
tettoffensive
  • 664
  • 7
  • 24
1
vote
0 answers

Get Save Photo + Instagram option in UIDocumentInteractionController

I ran into a problem which I can not seem to solve. I have a photo editing app and I want the user to be able to share the image on Instagram as well as, save it to the camera roll. My problem is: For Instagram sharing I have to save the image with…
Balázs Vincze
  • 3,550
  • 5
  • 29
  • 60