应该在 info.plist 中写什么来激活联系人的 iOS 共享扩展?

问题描述

我知道对于不同类型的激活共享扩展,例如:图像、视频、文件等,我们接下来应该写在 info.plist 中:

<key>NSExtensionActivationSupportsImageWithMaxCount</key>
<integer>1</integer>
<key>NSExtensionActivationSupportsMovieWithMaxCount</key>
<integer>1</integer>
<key>NSExtensionActivationSupportsFileWithMaxCount</key>
<integer>1</integer> 

然后当用户选择共享时,我们将看到我们的应用程序。太棒了!

用户点击“共享联系人”按钮上的联系人卡片时,应该在 info.plist 中写入什么来激活联系人的 iOS 共享扩展?我看到了这个问题:How to create an iOS share extension for contacts,但它没有解释我们如何激活它。我也看到了这个:How to declare vcard document type in xcode plist file 指的是 Associate file types for vcard with an iPhone application 但作者说它不起作用,对我来说也是如此。

我很高兴看到任何答案!

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)