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

Listen to UIDocumentInteractionController and Whatsapp

I am sharing a video to whatsapp using the typical UIDocumentInteractionController, I would like to: Detect if the user actually opened another app with the documentController. Detect if the user actually successfully shared the file in…
Zeretyh
  • 17
  • 1
  • 6
0
votes
1 answer

Cannot load files in UIDocumentInteractionController

I am building an app that allows the opening of a PDF, and handles this like so: - (BOOL)application:(UIApplication *)app openURL:(NSURL *)url sourceApplication:(NSString *)source annotation:(id)annotation { if (url != nil && [url…
Someone
  • 428
  • 5
  • 17
0
votes
1 answer

How would I manually set the arrow direction of an options menu presented by a UIDocumentInteractionController?

My app includes an options menu for sharing, which is presented when a UITableViewCell is long pressed. If the UITableViewCell is too high on the screen, the arrow from the options menu is below the UITableViewCell. Is there any way to set the arrow…
0
votes
1 answer

UIDocumentInteractionController presentOpenInMenuFromRect

I have this code that is called from within a UIAlertController: func createSomeFile() { var output = (some NSData to output to file) let fileName = NSTemporaryDirectory().stringByAppendingPathComponent("filename.ext") let url: NSURL!…
flightsimmer668
  • 41
  • 1
  • 10
0
votes
0 answers

Possible sharing image on social media WITHOUT UIActivityController/UIDocumentController?

I have been struggling to find out how to share media on social networks in a customized way. I know that iOS natively supports sharing to Facebook, Twitter and in messages/email, but I would actually like to use third party social networks as well,…
0
votes
1 answer

Some DOC Documents are not Displaying in iOS?

It's a weird problem, there are many different type files on my list such as pdf, ppt, xls etc, everything works fine with them but some doc files are not displaying. I use WebView, UIDocumentInteractionController, QLPreviewController to display the…
unbalanced
  • 1,192
  • 5
  • 19
  • 44
0
votes
2 answers

How to navigate particular search page in App store?

In my app i am opening documents via UIDocumentInteractionController. if no apps is installed in device we want to navigate to app store.In that place i want to navigate to document viewer related apps page. if anyone can suggest me.
0
votes
1 answer

Unbalanced calls to begin/end appearance transitions for in UIDocumentInteraction

I am trying to load files in device by using UIDocumentInteractionController in a phonegap app. I have done by following. #import #import @interface FileViewer : UIViewController…
RamGrg
  • 296
  • 1
  • 4
  • 20
0
votes
1 answer

AirDrop Not Working

I'm using UIActivityViewController or UIDocumentInteractionController for Airdrop for sharing the files between devices for my document sharing application. the same code which was working in iOS7 but now in iOS8 when I'm trying to connecting to…
0
votes
0 answers

UIDocumentInteractionController stopped working for Tumblr

I have this UIDocumentInteractionController to share a photo on Instagram and Tumblr. Instagram works great, but the one for Tumblr stopped working. I use @"com.tumblr.photo" for UTI, @".tumblrphoto" for file extension. Does anyone know if there…
liquidpenguins
  • 994
  • 1
  • 14
  • 26
0
votes
1 answer

open in ibooks from a url crashes

I am trying to open ibooks from webview. When a user taps on a webview, I am showing all the apps they can use to open that certain pdf. But when i click on ibooks, app closes and nothing happens. -(void) handleTap{ NSURL *pdfURL =[NSURL…
Asif Alamgir
  • 1,454
  • 1
  • 16
  • 41
0
votes
1 answer

UIDocumentInteractionController can only share pdf with Mail app

When I try to open a pdf file using UIDocumentInteractionController all installed apps that can handle PDF's gets presented. If I pick the Mail app it works as intended and the file gets attached to a new mail, but every other app fails. If I try to…
Niels
  • 1,026
  • 9
  • 17
0
votes
1 answer

want my image or pdf files to be opened through the default viewer of iPhone from my ios app

I have my app with diff format files like .jpg, .png, .pdf, .mkv... and these are coming from aws as url...i want to open each url with native viewer. Please help.
SoumiMaiti
  • 91
  • 10
0
votes
1 answer

Mail app segue (open-with) with incorrect navigation bar colors

I am currently attempting to open up the iOS mail all to create a draft with an attachment generated from my app. Here is a code snippet: NSURL *fileLocation = [NSURL fileURLWithPath:self.site.dataFileLoc]; if(fileLocation) { …
user1927638
  • 1,133
  • 20
  • 42
0
votes
1 answer

IOS 8 UIDocumentPicker

I have some questions regarding the UIDocumentPicker in iOS in terms of how can developer customize the content displaying to the user: In the official document, it says there're 2 ways of presenting the Document Picker: the menu of available…
NinjaDuck
  • 37
  • 4