我想使用邮件应用程序将 vCards 导入我的 iOS 应用程序。我已将 public.vcard 添加到我的项目列表中。如果我尝试在另一个应用程序中打开电子名片,UIDocumentInteractionController
一切都会按预期工作。但是,如果我尝试在邮件应用程序中打开 vCard,则会在邮件中打开 vCard,而我的应用程序没有选择。有解决办法吗?
更新: vcard 的 plist 条目看起来像
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>vCard</string>
<key>LSHandlerRank</key>
<string>Default</string>
<key>LSItemContentTypes</key>
<array>
<string>public.vcard</string>
</array>
</dict>
</array>