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
56
votes
7 answers

I have REAL misunderstanding with MFMailComposeViewController in Swift (iOS8) in Simulator

I create a CSV file and try to send it by e-mail. Displays a window to send mail, but is not filled with the body of the email, and no attached file. Application hangs with this screen: button "Cancel" does not work. After a few seconds in the…
49
votes
2 answers

Supporting Open In... menu item in my app for iOS Mail And Safari

I need to have my app open documents from the Safari and Mail apps with that "Open In..." thing in the UIDocumentInteractionController class. How do I accomplish this?
CodaFi
  • 43,043
  • 8
  • 107
  • 153
38
votes
5 answers

iOS share image AND text to WhatsApp

I have googled, and get some solutions, it seems the only possible way is thru UIDocumentInteractionController. I have found the result that able to share text ONLY, also found result that share image ONLY. But what I want is share BOTH. I know this…
Js Lim
  • 3,625
  • 6
  • 42
  • 80
34
votes
4 answers

Dismissing iOS mail app opened from UIDocumentInteractionController removes the presenting ViewController's view in iOS7

I have implemented UIDocumentInteractionController in my app for showing open in options. It's working fine on iOS8 devices, but in iOS7 when I open my PDF in the mail from options. It opens mail composer when I dismiss the mail composer it also…
Mayank Jain
  • 5,663
  • 7
  • 32
  • 65
33
votes
12 answers

Adding Images to UIActionSheet buttons as in UIDocumentInteractionController

Is it possible to add an image to the buttons of the UIActionSheet as seen in UIDocumentInteractionController? If so, please let me know how it is done.
25
votes
4 answers

UIDocumentInteractionController adding custom actions to menu (eg email, save to photos)

I've started using UIDocumentInteractionController for a new app but I'm wondering how to add additional actions to the action menu that you get on the preview screen? It seems that the menu only lists apps that have registered for a given url type…
Roger
  • 15,793
  • 4
  • 51
  • 73
22
votes
3 answers

UIDocumentInteractionController for Open In menu - Doesn't Work

I implemented a UIDocumentInteractionController to send files to other apps. The file is a .txt file. Here's the code: UIDocumentInteractionController *interactionController = [[UIDocumentInteractionController alloc] init]; [interactionController…
jstm88
  • 3,335
  • 4
  • 38
  • 55
22
votes
1 answer

UIDocumentInteractionController "invalid scheme (null)"

I'm trying to preview a document with UIDocumentInteractionController. The document is an .xls file which my app downloads from the web. I keep getting this error: 'UIDocumentInteractionController: invalid scheme (null). Only the file scheme is…
Joris416
  • 4,751
  • 5
  • 32
  • 59
20
votes
2 answers

UIDocumentInteractionController change title of presented view

I am using the UIDocumentInteractionController to display PDF files. My files are stored in the filesystem using encoded filenames that are not user-friendly. I do have access to a more friendly name for the file, but the file is not stored with…
whatdoesitallmean
  • 1,586
  • 3
  • 18
  • 40
16
votes
2 answers

Open in + UIDocumentInteractionController : how to filter options in SDK iOS 6 (canPerformActions is deprecated)

Since the new SDK was release (iOS 6), the delegate method documentInteractionController:canPerformAction: of the UIDocumentInteractionControllerDelegate is deprecated. Using that method you were able to prevent default actions like print: and copy:…
Omer
  • 5,470
  • 8
  • 39
  • 64
14
votes
2 answers

Instagram open UTI directly

I recently stumbled upon the following interesting feature: Instagram iPhone Hooks I was wondering if one is able to open an app through the documentinteractioncontroller immediately, WITHOUT having to show a preview (– presentPreviewAnimated:) or…
ThomasM
  • 2,647
  • 3
  • 25
  • 30
13
votes
3 answers

Using built-in icons for mime type or UTI type in iOS

Problem: I would like to be able to use the built-in iOS icons for standard mime types (or UTI types) in my listing of binary file content. Background: I have looked into using the new (since 3.2) document architecture, but using the…
John K
  • 284
  • 3
  • 7
13
votes
2 answers

Custom "Email" action in UIDocumentInteractionController

Is there any way to add a custom action to the list of actions provided by the UIDocumentInteractionController? I would like to add an "Email" action to the list. I know I can use the MFMailComposeViewController to send email with attachments, but…
Kenny Wyland
  • 20,844
  • 26
  • 117
  • 229
13
votes
3 answers

Warning: Unbalanced calls to begin/end appearance transitions for QLRemotePreviewContentController

I already found some solutions for this problem (it is caused because there is still an active animation). But i am unable to solve that in my app when using a UIDocumentInteractionController on an iPad Application. My ViewController looks like…
derdida
  • 14,784
  • 16
  • 90
  • 139
13
votes
2 answers

UIActivityViewController vs UIDocumentInteractionController in ios

I just read some articles on UIActivityViewController and UIDocumentInteractionController in iOS, but I am very confused about how to use them because both seem the same. So, when do I use UIActivityViewController or…
1
2 3
22 23