2011-12-28 11 views
7

ho fatto seguenti cambiamenti nel mio file info.plisti tipi di file associati a vCard con un'applicazione 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> 

Quando ho premere e tenere premuto l'allegato vCard, invece di darmi la possibilità di aprirlo in contatti app o con la mia applicazione si apre semplicemente con l'app contatti ... Come dovrei avere l'opzione di aprirlo con la mia app? Si prega di rispondere al più presto ....

risposta

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