- 在Info.plist中添加下面的Tag
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array/>
<key>CFBundleTypeName</key>
<string>SupportedFiles</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.microsoft.excel.xls</string>
<string>org.openxmlformats.spreadsheetml.sheet</string>
<string>public.comma-separated-values-text</string>
</array>
</dict>
</array>
<key>LSSupportsOpeningDocumentsInPlace</key>
<false/>
LSItemContentTypes
1.com.microsoft.excel.xls:Excel xls
2.org.openxmlformats.spreadsheetml.sheet: Excel xlsx
3.public.comma-separated-values-text: Excel csvLSSupportsOpeningDocumentsInPlace
1.true:显示在App中打开
2.false:显示拷贝到App