uidocumentinteraction

UIDocumentInteractionController does not open other app in iOS 11

。_饼干妹妹 提交于 2021-02-07 19:08:18
问题 My apps ability to share a PDF to another third party app has broken in iOS 11. It shows the share sheet but when I choose to open it in a different (third-party) app, it simply dismisses the share sheet and does nothing. Things I've confirmed: The delegate methods for willBeginSending and didEndSending are both called Opening first party apps like Mail or Notes works fine The document picker is still in memory Presenting a preview works fine but then the share button from inside the preview

urlSession download from remote url fail - CFNetworkDownload_gn6wzc.tmp appeared

自作多情 提交于 2020-12-15 04:56:40
问题 I was trying to download file from remote url using urlSession . But when the download is completed an unexpected file appeared named CFNetworkDownload_gn6wzc.tmp then i cannot open that file using uidocumentinteractioncontroller. What is that file? how to fix this issue. Thank for reply. Here is message Your location is file:///Users/pisal/Library/Developer/CoreSimulator/Devices/26089E37-D4EA-49E5-8D45-BB7D9C52087D/data/Containers/Data/Application/767E966E-5954-41BA-B003-90E2D27C5558/Library

Share image on whatsapp using Swift

∥☆過路亽.° 提交于 2020-02-08 07:06:58
问题 I'm creating an application to share images via social media platforms but on WhatsApp especially. I tried using UIActivityViewController but it doesn't display the WhatsApp option when the sheet is shown. I searched online and found the code below: This shows the WhatsApp option when the sheet is displayed but choosing the WhatsApp option causes the application to crash. This is the code: let controller = UIDocumentInteractionController() let path = NSSearchPathForDirectoriesInDomains(

Can I hide the Action button on the UIDocumentInteractionController view?

流过昼夜 提交于 2020-01-21 08:36:05
问题 I wanted to know if I can hide the Action button on the UIDocumentInteractionController so a user couldn't actually open the document in another app? 回答1: I found something that works for me well enough: - (BOOL)documentInteractionController:(UIDocumentInteractionController *)controller canPerformAction:(SEL)action{ return false; } It still shows the button but the popover that appears only has the print form but the print button is disabled. 回答2: The whole purpose of the

presentOpenInMenuFromBarButtonItem: doesn't cause menu to appear

孤街醉人 提交于 2020-01-04 06:29:23
问题 I am attempting to display an Open In menu via UIDocumentInteractionController and presentOpenInMenuFromBarButtonItem . This does not bring up the UIDocumentInteractionController on screen. The weird thing is that if I replace " OpenIn " with " Options " then it will work as expected. What is causing presentOpenInMenuFromBarButtonItem not to work? Thank you. NSString *fileName = [NSString stringWithFormat:@"%@text.txt", NSTemporaryDirectory()]; [self.textToShare writeToFile:fileName

presentOpenInMenuFromBarButtonItem: doesn't cause menu to appear

生来就可爱ヽ(ⅴ<●) 提交于 2020-01-04 06:29:16
问题 I am attempting to display an Open In menu via UIDocumentInteractionController and presentOpenInMenuFromBarButtonItem . This does not bring up the UIDocumentInteractionController on screen. The weird thing is that if I replace " OpenIn " with " Options " then it will work as expected. What is causing presentOpenInMenuFromBarButtonItem not to work? Thank you. NSString *fileName = [NSString stringWithFormat:@"%@text.txt", NSTemporaryDirectory()]; [self.textToShare writeToFile:fileName

presentOpenInMenuFromBarButtonItem: doesn't cause menu to appear

喜你入骨 提交于 2020-01-04 06:29:02
问题 I am attempting to display an Open In menu via UIDocumentInteractionController and presentOpenInMenuFromBarButtonItem . This does not bring up the UIDocumentInteractionController on screen. The weird thing is that if I replace " OpenIn " with " Options " then it will work as expected. What is causing presentOpenInMenuFromBarButtonItem not to work? Thank you. NSString *fileName = [NSString stringWithFormat:@"%@text.txt", NSTemporaryDirectory()]; [self.textToShare writeToFile:fileName

Getting the “Open in…” overlay in iOS via SDK

依然范特西╮ 提交于 2020-01-04 02:45:28
问题 I have an iOS app which offers the opportunity to open documents in other applications via UIDocumentInteractionController. Neither presentOpenInMenuFromRect nor presentOpenInMenuFromBarButtonItem does the Safari-style overlay menu of "Open in..." "Open in iBooks" that you get when viewing a PDF (for instance) and those appear to be the only ways to ask for a menu. My "Open In" menu does work, it's just not the UI experience I am trying to offer. Is this functionality in a private framework

DocInteraction sample code (UIDocumentInteractionController) broken on iOS 4.3 simulator

﹥>﹥吖頭↗ 提交于 2020-01-03 10:54:19
问题 The DocInteraction sample code made available by Apple at http://developer.apple.com/library/ios/#samplecode/DocInteraction/Introduction/Intro.html (download: http://developer.apple.com/library/ios/samplecode/DocInteraction/DocInteraction.zip ) does not work when simulating on 4.3. It works fine on 4.2 though. I've looked through but don't get any errors or any warnings. Not really sure what's going on. Thought I'd ask here. I already reported it. It just loads a white screen. Any ideas? 回答1:

willBeginSendingToApplication not called when open EverNote or any other extention

我只是一个虾纸丫 提交于 2020-01-03 05:39:05
问题 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 - (void)documentInteractionController:(UIDocumentInteractionController *)controller willBeginSendingToApplication:(NSString *)application is called. In this method I can check whether to allow for chosen app or not. Issue is for Note, Evernote we get two options 1- its extension 2- Open in. Above method