0
我想讓我的應用程序導入電子郵件sqlite文件,所以我創建了文檔類型和自定義UTI在我的info.plist。然而,當我收到一封電子郵件sqlite的文件在我的應用程序打開該選項不會出現:自定義sqlite UTI不工作
這裏的文檔類型定義:
和這裏的UTI
我現在已經修改了以下內容來創建一個名爲.icx的自定義文件擴展名。然而,當我試圖打開一個附件ICX,我給出的唯一選項的Dropbox,郵件和FileAppPro:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeIconFiles</key>
<array>
<string>inCommand icon114</string>
</array>
<key>CFBundleTypeName</key>
<string>icx Database</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>com.ncbath.inControl.icx</string>
</array>
</dict>
</array>
<key>UTExportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeDescription</key>
<string>icx Database</string>
<key>UTTypeIdentifier</key>
<string>com.ncbath.inControl.icx</string>
<key>UTTypeSize320IconFile</key>
<string>inCommand icon114</string>
<key>UTTypeSize64IconFile</key>
<string>inCommand icon57</string>
<key>UTTypeTagSpecification</key>
<string>Dictionary</string>
<key>public.filename-extension</key>
<string>icx</string>
<key>public.mime-type</key>
<array>
<string>application/inControl</string>
</array>
</dict>
</array>