更新时间:2023-11-22 16:22:10
UIDocumentInteractionController
基本上它的工作原理如下:
Basically it works like this:
UIDocumentInteractionController
,并且将给用户选项将文件发送到App1 (我相信这必须是用户激活的) - (BOOL)application:openURL:sourceApplication:annotation:
处理传输的文件,该文件将保存在您的 Documents / Inbox
目录中。从那里你可以复制文件在其他地方,然后处理它,确保你清理掉了保存在收件箱文件夹中的原始文件。 UIDocumentInteractionController
and will give users the options to "send the file to App1" (I believe this has to be user activated)-(BOOL)application:openURL:sourceApplication:annotation:
and deals with the transferred file which will be saved in your Documents/Inbox
directory. From there you can copy the file elsewhere and then manipulated it, making sure you clean up by getting rid of the original one saved on the Inbox folder. 可供参考类别此处
可提供文档交互计划指南这里
Document interaction programming guide available here