2011-12-28 45 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> 
相關問題