[英]Open files from Safari with “Open in” in my app
I need to be able to open any file from Safari in my app via the "Open in" feature. 我需要能够通过“打开方式”功能从我的应用程序中的Safari打开任何文件。 My app will appear in the "Open in"-list when I try to open any file in mail-app or another custom app, but my app won't appear in Safari.
当我尝试在邮件应用程序或其他自定义应用程序中打开任何文件时,我的应用程序将出现在“打开方式”列表中,但我的应用程序不会出现在Safari中。 Why?
为什么? What I did:
我做了什么:
I specified following stuff in my plist: 我在plist中指定了以下内容:
Then: 然后:
Then: 然后:
Why? 为什么? What do I need to do to get the ability to open files in my app via Safari?
我需要做些什么才能通过Safari在我的应用程序中打开文件?
You can try to set "Document Role"
to "Editor"
您可以尝试将
"Document Role"
设置为"Editor"
I think your Document types
is right because Dropbox app does the same way 我认为您的
Document types
正确,因为Dropbox应用程式的运作方式相同
This is a part of info.plist of Dropbox app 这是Dropbox应用程序info.plist的一部分
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.