2011-12-28 43 views
7

我已经做了以下的变化在我的Info.plist文件关联的文件类型与iPhone应用程序

<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> 

当我按住名片附件,而不是给我一个选择在联系人中打开电子名片应用程序或与我的应用程序,它只是打开它与联系人应用程序...我应该如何获得选项来打开它与我的应用程序?请尽快回复....

回答

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> 
相关问题