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

open PDF URL in iOS 8?

I have write this code to show pdf using UIDocumentInteractionController.But,I don't know how to search pdf at local directory and open in iOS 8 and below..Any help? let filename = history.invoiceLongDate // 01223642 if…
Thiha Aung
  • 5,036
  • 8
  • 36
  • 79
0
votes
1 answer

UIDocumentInteractionController does not open pdf file

I am trying to open pdf file in UIDocumentInteractionController.UIDocumentInteractionController open pop up menu but When I select the any app than my application it is crashed but not displaying any error here is my thread here is my .h file…
Jigar
  • 1,801
  • 1
  • 14
  • 29
0
votes
1 answer

UIDocumentInteractionController failing to send file via AirDrop

I am using UIDocumentInteractionController to share a KML (Geo XML) file. When I use the UIDocumentInteractionController I can open the KML file in other apps just fine. I can send it via email. However, when I try to share it via AirDrop to my…
Stephen Johnson
  • 5,293
  • 1
  • 23
  • 37
0
votes
1 answer

warning: attempt to present whose view is not in the window hierarchy

I have a UITabView in UIViewController, all tab items are linked to other UIViewControllers. I have written a swift code of downloading a file through internet. when I select second tabItem, this code runs well, it downloads and previews the…
user3314286
  • 243
  • 3
  • 18
0
votes
1 answer

Launch iOS extension without UI

I have to share data between iOS Apps without any user interaction. After some googling, I found that the best possible way for doing that is by using Extension. As per Apple extension guide, users open app extension by interacting with some…
DRK
  • 191
  • 9
0
votes
1 answer

iOS UIDocumentInteractionController invalid scheme (null). Only the file scheme is supported

I have a UIWebView. When a PDF link is clicked inside that UIWebView I want to open it using the UIDocumentInteractionController. Here is my code: - (BOOL)webView:(UIWebView*)webView shouldStartLoadWithRequest:(NSURLRequest*)request…
Ale
  • 2,282
  • 5
  • 38
  • 67
0
votes
1 answer

willBeginSendingToApplication not called when open EverNote or any other extention

I have a feature to open docs in other apps from iPhone and iPad app. Also a flag is set whether to allow this action or not. Few apps can be white listed. When any app is chosen to open doc -…
Durgaprasad
  • 1,910
  • 2
  • 25
  • 44
0
votes
1 answer

Combine UIDocumentInteractionController with UIActivityController to share on Instagram, Facebook, to mail, message and so on

I need to be able to share photos on Instagram as well as also to all the options that are presented with UIActivityViewController - Facebook, Twitter, mail, etc. I manage to share to Instagram with UIDocumentInteractionController, but need to have…
0
votes
0 answers

Cordova - App crashes when opening in iBooks

We have recently updated Xcode & Cordova and made some changes on our app. Every time when i hit the "Generate PDF"-button the UIDocumentActivityViewController shows up. Now when you click on iBooks or any other app listed, the app…
moeses
  • 497
  • 1
  • 6
  • 21
0
votes
1 answer

UIDocumentInteractionControllerDelegate check when document is loaded

Which delegate function of UIDocumentInteractionControllerDelegate is called when document is completely loaded on the preview? Just to share, I have already tried : -…
Nitish
  • 13,845
  • 28
  • 135
  • 263
0
votes
1 answer

Unable to present document interaction controller

I recently submited an app and it got rejected due to the isse: the share button does not function, when a user presses it no action occurs It was working before I submit it to appstore. But now it's not. I am unable to present the document…
Teja Nandamuri
  • 11,045
  • 6
  • 57
  • 109
0
votes
0 answers

Why iOS FaceBook Share Shows Empty Image box even the image is provided?

All Works Fine except when I press Facebook share button in my iOS app, it loads and shows me an Empty image box. Any idea? Log error: [Attempting to load the view of a view controller while it is deallocating is not allowed and may result in…
Nick
  • 67
  • 10
0
votes
1 answer

UIDocumentInteractionController: unrecognized selector sent to instance

I am using UIDocumentInteractionController to share a document (PDF) with other apps. The view with the different apps shows up just fine but when I press any of the apps to open/save/share the file, my app crashes. I get the Unrecognised selector…
Moumou
  • 1,513
  • 2
  • 18
  • 41
0
votes
0 answers

Unknown output: "AirDrop: collectionView..." when using UIDocumentInteractionController

I am an ios developer. Recently I'm using the UIDocumentInteractionController to open my file in other apps. When the code runs to a line that called the presentOpenInMenuFromRect:inView:animated method, a weird string appears in the xcode output:…
Jia Ruo
  • 3
  • 2
0
votes
1 answer

Objective-C display PDF from server

I am trying to display a PDF from a server in my app. I tried going the route of Document Interaction Controller, but that only display files within a app, not off the web :( if (URL) { // Initialize Document Interaction Controller …
user979331
  • 11,039
  • 73
  • 223
  • 418