【问题标题】:Associate file types for vcard with an iPhone application将 vcard 的文件类型与 iPhone 应用程序相关联
【发布时间】:2012-01-29 00:03:32
【问题描述】:

我在 info.plist 文件中做了以下更改

    <key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>Visiting Card</string>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>Icon.png</string>
        </array>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.vcard</string>
        </array>
    </dict>
</array>

当我按住电子名片附件时,我没有选择在联系人应用程序或使用我的应用程序中打开它,而是简单地使用联系人应用程序打开它...我应该如何选择使用我的应用程序?请尽快回复....

【问题讨论】:

    标签: iphone ios vcf-vcard


    【解决方案1】:
    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>VCard Files</string>
            <key>CFBundleTypeRole</key>
            <string>Viewer</string>
            <key>LSHandlerRank</key>
            <string>Alternate</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>public.vcard</string>
            </array>
        </dict>
    </array>
    

    【讨论】:

      猜你喜欢
      • 2011-02-15
      • 2012-03-10
      • 1970-01-01
      • 2022-01-11
      • 1970-01-01
      • 2012-03-18
      • 2014-05-03
      相关资源
      最近更新 更多