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

registering file types supported by an application to open files from other apps

I want my app to be able to copy files (images, videos, etc..) from other applications throughout iOS, after looking through apples documentation and some online sources I still haven't been able to get it to work. I have attached an image of what…
8
votes
2 answers

UIDocumentInteractionController displaying blank pdf

I'm trying to display a pdf on iOS devices using the UIDocumentInteractionController presentPreviewAnimated method, but it keeps displaying a blank document. I think it might have to do with the character encoding, but I'm not sure. If I use a…
Chris Conway
  • 16,269
  • 23
  • 96
  • 113
8
votes
1 answer

Interact with Mail though UIDocumentInteractionController

I'm sharing a PDF to other apps through the UIDocumentInteractionController. Prior to adding this functionality, I had a custom 'send to email' button using the MFMailComposeViewController - yet now there's also a Mail button in my…
Chris
  • 5,882
  • 2
  • 32
  • 57
8
votes
3 answers

ios iphone hooks open instagram directly without showing UIDocumentInteractionController

I'm integrating sharing images through instagram in my app. I've read their documentation. It seems that I need to use the iOS UIDocumentInteractionController to allow this (I understand that it allows access to files in my app's sandbox). Digging…
Avba
  • 14,822
  • 20
  • 92
  • 192
8
votes
1 answer

Exclusive iOS UTI

I'm trying to create / export an exclusive UTI type for my iOS app (very similar to how Instagram exclusively handles the UTI com.instagram.exclusivegram). Basically, I want com.photoapp.photo to be what an app can use if they want to be able to…
joshholat
  • 3,371
  • 9
  • 39
  • 48
7
votes
1 answer

Register for all file types (CFBundleDocumentTypes)

Programs like Drop Box, or Airsharing don't handle or edit documents but store them. In this case it would seem that they have to register as being a valid choice for any type of file. Is there a way to register your application as a handler for…
BadPirate
  • 25,802
  • 10
  • 92
  • 123
7
votes
4 answers

How to use UIDocumentInteractionController?

I have created a program that loads PDF files. I want when the user is editing that they can publish the file anywhere in PDF format. Do I use UIDocumentInteractionController or use UIActivityViewController? Here is the code: import UIKit import…
Faisal
  • 205
  • 1
  • 3
  • 11
7
votes
1 answer

iOS Swift Download and Open Files Using URL

In my app I'm having files download open. Everything is done perfectly, But Problem is Files like zip,rar, tar files getting download but those files won't show up after completing download. Here is my tried code: func DownloadDocumnt() { …
Kavin Kumar Arumugam
  • 1,792
  • 3
  • 28
  • 47
7
votes
7 answers

How to change UIDocumentInteractionController Done button text and background color

How to change the background color and text color of done button? Is there a way that I can change the navigationbar color and navigation bar title color and bottom bar color also? Attached screenshot for reference:
Dee
  • 1,887
  • 19
  • 47
7
votes
1 answer

Objective-C: Share both, Text AND Image via UIDocumentInteractionController to Instagram/Facebook/Twitter

I just want to know if there is a way to share a picture AND a text with the UIDocumentInteractionController. I developed an app which has the functionality to share, and so far I can share pictures to facebook, twitter and instagram, but no text…
Vancore
  • 657
  • 1
  • 9
  • 18
7
votes
2 answers

UIDocumentInteractionController not showing print option

I have code to show a document as follows: documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:self.thisUrl]; NSString *pathExtension = [self.thisUrl pathExtension]; if (pathExtension) { NSString *UTI =…
1800 INFORMATION
  • 131,367
  • 29
  • 160
  • 239
7
votes
0 answers

UIDocumentInteractionController handling ics files

I've managed to open an ics file stored locally, and the UIDocumentInteractionController recognizes it the UTI as com.apple.ical.ics (which is expected). The data displays as I was hoping, for the most part: I was under the impression from the…
Alex
  • 978
  • 7
  • 23
7
votes
1 answer

UIDocumentInteractionController Does Not Show Mail Option

Heres the UIDocuemtnInteractionController from my application(does not show mail option) Here the one that Apples sample project uses Here are the respective codes My application docInteractionController = [UIDocumentInteractionController…
BangOperator
  • 4,377
  • 2
  • 24
  • 38
7
votes
3 answers

Configuring bottom bar in QLPreviewController

I have integrated QLPreviewController and UIDocumentInteractionController in my app, and it is working fine. The only problem is- I want to configure the bottom toolbar, I want to remove the default toolbar items, which appear as shown in image…
Devarshi
  • 16,440
  • 13
  • 72
  • 125
7
votes
3 answers

How to check if any apps are associated with file extension

I want to make "Open in.." function in my iOS application. Is there any way to check if any app on this device is associated with file extension that i want to share? If there are no apps on current device to open file with such an extension than…
B.S.
  • 21,660
  • 14
  • 87
  • 109
1 2
3
22 23