繁体   English   中英

如何使我的应用程序显示在iPhone的“打开位置...”列表中?

[英]How do I get my app to show up in the “Open In…” List on iPhone?

我在info.plist中找到了此链接以使用文档类型

如何使我的应用程序显示在iPad的“打开方式...”弹出菜单中?

但是,如果我想将任何类型的文件添加到“文档”类型中,应该在info.plist中添加“ jpg,png,pdf,mov,xml,php,doc,ppt .....”。

有没有一种简单的方法可以使myapp在另一个应用程序中打开任何类型的文件?

通常,我们将在操作表中编写“打开”,然后单击以调用“文档交互控制器”以找到可以打开文档的适用应用

UIDocumentInteractionController *docInteractionController = [UIDocumentInteractionController interactionControllerWithURL:[NSURL fileURLWithPath:@"file_full_path.pdf"]];

[docInteractionController presentOptionsMenuFromRect:self.view.frame
                                                   inView:self.view
                                                 animated:YES];

fileURLWithPath:-包含完整路径的文件名

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM