ios - Associate files type with my Iphone App -
i'm trying associate files type application (pdf , doc). pdf, it's ok. read subject: how associate file types iphone application?
and works perfectly. tried add .doc type doesn't works.
edit: works code (pdf, word , excel):
here app-info.plist:
<key>cfbundledocumenttypes</key> <array> <dict> <key>cfbundletypeiconfiles</key> <array> <string>icon.png</string> <string>icon@2x.png</string> </array> <key>cfbundletypename</key> <string>my apps files</string> <key>cfbundletyperole</key> <string>editor</string> <key>lshandlerrank</key> <string>owner</string> <key>lsitemcontenttypes</key> <array> <string>public.composite-content</string> <string>public.data</string> <string>public.content</string> </array> </dict> </array> <key>utexportedtypedeclarations</key> <array> <dict> <key>uttypeidentifier</key> <string>com.adobe.pdf</string> <key>uttypedescription</key> <string>pdf document</string> <key>uttypeconformsto</key> <array> <string>public.data</string> <string>public.composite-content</string> </array> <key>uttypetagspecification</key> <dict> <key>public.filename-extension</key> <array> <string>pdf</string> </array> <key>public.mime-type</key> <string>application/pdf</string> </dict> </dict> <dict> <key>uttypeidentifier</key> <string>com.microsoft.word.doc</string> <key>uttypedescription</key> <string>word document</string> <key>uttypeconformsto</key> <array> <string>public.data</string> </array> <key>uttypetagspecification</key> <dict> <key>public.filename-extension</key> <array> <string>doc</string> </array> <key>public.mime-type</key> <string>application/msword</string> </dict> </dict> <dict> <key>uttypeidentifier</key> <string>com.microsoft.excel.xls</string> <key>uttypedescription</key> <string>excel document</string> <key>uttypeconformsto</key> <array> <string>public.data</string> </array> <key>uttypetagspecification</key> <dict> <key>public.filename-extension</key> <array> <string>xls</string> </array> <key>public.mime-type</key> <string>application/vnd.ms-excel</string> </dict> </dict> </array>
hope helps :)
best regards,
here code doc file formate may not work images.
<dict> <key>cfbundletypename</key> <string>microsoft word</string> <key>lshandlerrank</key> <string>alternate</string> <key>lsitemcontenttypes</key> <array> <string>com.microsoft.word.doc</string> <string>com.microsoft.word.wordml</string> <string>org.openxmlformats.wordprocessingml.document</string> </array> </dict>
Comments
Post a Comment