Questions tagged [uidocumentinteractioncontroller]

44 questions
1
vote
0 answers

Unknown Interface Orientation error in UIDocumentInteractionViewController when cancel button is tapped in save to file share options

I create a DocumentInteractionViewController for preview the files when I click on share icon then on save to files option after that If i save or cancel it gives this error in iPhone 7 size devices . Objective-C exception thrown. Name:…
1
vote
0 answers

UIDocumentInteractionController not working in iPad Real Device for iOS Objective c

My code is here: dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ NSLog(@"Downloading Started"); NSURL *url = [NSURL URLWithString:urlToDownload]; NSData *urlData = [NSData…
1
vote
2 answers

Switching back to the app after Saving to iCloud Drive from UIDocumentInteractionController removes navigation hierarchy

I am using UIDocumentInteractionController to save the document at specified URL to iCloud Drive, but the problem is that when I switch back to the app after saving/cancel from iCloud, my original view controller is no longer present, the entire…
Mansi
  • 628
  • 1
  • 8
  • 18
1
vote
0 answers

Disabling highlighting while previewing a PDF file with UIDocumentInteractionController

My app downloads a PDF file from a web server and stores it locally on the iOS device. I then display it to the user using a UIDocumentInteractionController which is declared as a property named "controller" in the .h file. NSURL *urlToFileToPreview…
Scooter
  • 4,068
  • 4
  • 32
  • 47
0
votes
0 answers

How to prevent screenshot of opened document in UIDocumentInteractionController?

everyone! I'm building an app for making documents(UIKit). And after user fill all the info, the app presents a filled document. I use UIDocumentInteractionController to present it on full screen and I would like to prevent making screenshooting of…
0
votes
1 answer

UIDocumentInteractionController not showing .docx apps like Word and Pages

I have a chat app that also lets you send and receive documents. I'd like to be able to open .docx files in a suitable app like Word or Pages. The code I'm currently using: self.uidic = UIDocumentInteractionController(url: url) self.uidic?.delegate…
Janneman
  • 1,093
  • 15
  • 23
0
votes
1 answer

MAUI .NullReferenceException (Native iOS QLPreviewController)

I am having a problem running after through the QLPreviewController interface. view.PushViewController(previewController, true); QLPreviewController starts up and displays what it should. At this point, UIApplication.Main(args, null,…
0
votes
0 answers

How to hide/remove my current share extension app from UIDocumentInteractionController-PresentOptionsMenu in Apple

I'm working on Xamarin Forms Application with dependency service to open the file ( Doc/image) in the UIDocumentInteraction Controller. Newly we implemented Share Extension to share the files to our app and the same is reflecting inside the app…
0
votes
1 answer

Transition to UIDocumentInteractionController takes over navigation bar title color

Just doing a simple transition a UIDocumentInteractionController to display a PDF. Its title is black, which is desired, but I want it to go back to the app color (white) when it goes back. Trying to force a change in viewWillAppear does nothing…
0
votes
1 answer

Is there a delegate method that gets called before the UIDocumentInteractionController share sheet pop ups

Please can someone help.I would like to add an alert message once a user clicks on the share button on a pdf viewer, i'm using UIDocumentInteractionController to preview the pdf document. and i wanted to know if there are any delegate methods or…
0
votes
1 answer

Xamarin iOS post image to Instagram

Goal: Using an iOS native method, push a user made picture onto their Instagram feed in C#. public bool ShareImage(byte[] imageByte) { bool result = false; //string fileName = "xxx.png"; //string path =…
0
votes
2 answers

UIDocumentInteractionController: cannot use/save files

In my app, I display some remote images or PDF files and want to give the user the ability to download them. In order to do so, I try to save them locally first in .documentDirectory before opening a UIDocumentInteractionController to handle the…
0
votes
1 answer

How I can open document at URL securely from my iOS app?

I need to open a document (it can be pdf, doc, html or other format) at some URL in my iOS app. What is most difficult is that access to the URL has to be authenticated, so I can't just open it in Safari. Also I must not store unencrypted files…
Vladimir
  • 7,670
  • 8
  • 28
  • 42
0
votes
1 answer

iOS14 missing buttons in "Save to Files" menu

I spot that my code behaves differently on iOS13 / iOS14. I am downloading pdf file and showing it with UIDocumentInteractionController DispatchQueue.main.async { let controladorDoc = UIDocumentInteractionController(url: PdfUrl) …
user3626411
  • 188
  • 2
  • 3
  • 15
0
votes
2 answers

UIDocumentInteractionController not available in Mac catalyst

May app getting crash when execute below code. Code: self.documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:targetURL]; Crash log: Terminating app due to uncaught exception 'NSGenericException', reason:…