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
0
votes
1 answer

Is it possible to closing copy text on QLPreviewController

I develop Xamarin Forms app. And I use QLPreviewController for ios. I want to close copy text/text share, if document has text. Is it possible and how? I searched it as native. Some sources redirect me to UIDocumentInteractionControllerDelegate. But…
0
votes
1 answer

Programmatically scroll pdf in UIDocumentInteractionController

I'm showing a pdf file inside a UIDocumentInteractionController, like this: let docController = UIDocumentInteractionController(url: documentsURL) let url = NSURL(string:"itms-books:"); if UIApplication.shared.canOpenURL(url! as URL) { …
0
votes
2 answers

Programming iOS: Document Preview, change the Done button

I'm using UIDocumentInteractionController class to preview documents. Is it possible to change the done button for closing the preview with another one? For example I would like to set a different title: "Close" instead of "Done".
Lorenzo B
  • 33,216
  • 24
  • 116
  • 190
0
votes
0 answers

iOS, Objective -C How to Hide/remove UIDocumentInteractionController bar/share button from iPad?

I am showing a powerpoint file via UIDocumentInteractionController (Objective - C). The client needs to remove bar/share button from the navigation bar. I have tried and follow much instruction which I found on Google. But all are not working in my…
0
votes
0 answers

Filter the apps suggested by UIDocumentInteractionController

I want to share images to Instagram from my iOS application using UIDocumentInteractionController but the controller should display only Instagram icon while sharing. Is it possible to filter the apps suggested by the…
0
votes
0 answers

How to share Remote URL(https://...) using UIDocumentInteractionController in iOS

I want to share remote URL using UIDocumentInteractionController from my app. How will I do this? Here is my code: let documentInteractionController = UIDocumentInteractionController.init() documentInteractionController.name =…
0
votes
1 answer

Preview PDF files on iOS 11.2

I ran into this bug that prevents my app from displaying PDF using UIDocumentInteractionController or QLPreviewController: https://forums.developer.apple.com/thread/91835 According to the suggestions, the solution is to copy files to documents or…
lukas
  • 579
  • 2
  • 8
  • 17
0
votes
2 answers

UIdocumentInteractionController cant display the PDF file in swift 4

class ViewController: UIViewController,UIDocumentInteractionControllerDelegate { let documentInteractionController = UIDocumentInteractionController(url: URL(fileURLWithPath: path)) documentInteractionController.delegate = self …
GTeckHan Goh
  • 97
  • 1
  • 3
  • 12
0
votes
1 answer

Swift UIDocumentInteractionController doesn't use device language

I'm trying to delegate the opening of a file my app created to an other app using the UIDocumentInteractionController within an UIAlertAction like this: // variable in the class var documentController:UIDocumentInteractionController! // the…
0
votes
1 answer

iOS Document Sharing: "Save to Dropbox" always fails

Posting after finding answer After "rubber duck debugging" this answer a bunch, I finally came across the correct answer on a question that appears to me to be unrelated. I think this question (and its answer) are still relevant, so I'm posting the…
mbm29414
  • 11,558
  • 6
  • 56
  • 87
0
votes
0 answers

iOS sharing document to WhatsApp using UIDocumentInteractionController

I'm trying to share a simple .txt file to WhatsApp using UIDocumentInteractionController on iOS. I found this FAQ of WhatsApp explaining the Custom URL Scheme for WhatsApp, but it is not explaining how to share another document to WhatsApp. This…
Mojo
  • 377
  • 6
  • 18
0
votes
2 answers

Which file system directory should I use to store files?

I just read through this link about ios file system. However, I still unable to decide how to properly store files in my app. My app basically does the following. display all sorts of files from the net. (docx, pdf, video, images, etc) user can…
Kyaw Htet Soe
  • 45
  • 1
  • 9
0
votes
0 answers

How to share excel file with UIActivityView Controller or UIDocumentInteractionController?

I want to share excel file with UIAtivityViewController or UIDocumentInteractionController let documentsPath = (NSSearchPathForDirectoriesInDomains(.documentDirectory, .userDomainMask, true)[0] as…
Tinku
  • 247
  • 1
  • 3
  • 13
0
votes
1 answer

How to share on instagram in ios?

I have to share image on instagram with caption but in Instagram nothing is coming. I used below code for sharing on instagram. Is there any changes in code of sharing. I also check the official page of Instagram but no code is given.…
Chirag Shah
  • 3,034
  • 1
  • 30
  • 61
0
votes
0 answers

UIDocumentPickerViewController is dismissing parent view controller

I am using UIDocumentPickerViewController, whenever I press done on the presented UIDocumentPickerViewController the screen is dismissing parent screen. Thnak you!!
Tarek A.
  • 218
  • 2
  • 12