0

iOSデバイスでは、メールアプリは添付ファイル用の「OpenIn...」オプションを提供します。リストされているアプリは、CFBundleDocumentTypesをOSに登録しています。これにより、アプリでSPSSファイル(.sav拡張子)を開く必要があります。どうすればこれを達成できますか?

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeExtensions</key>
        <array>
            <string>.SAV</string>
        </array>
        <key>CFBundleTypeIconFiles</key>
        <array/>
        <key>CFBundleTypeName</key>
        <string>SPSS</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array/>

ありがとう

4

3 に答える 3

0
<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>SPSS</string>
        <key>CFBundleTypeRole</key>
        <string>Viewer</string>
        <key>LSHandlerRank</key>
        <string>Alternate</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.item</string>
        </array>

public.item を使用して解決策を見つけました

于 2013-03-21T05:18:31.883 に答える
0

アプリの -Info.plist は、そのキーを追加する場所です。plist がどのように機能するかについては、Apple のInformation Property List Key Referenceを参照してください。

于 2013-03-20T06:49:33.943 に答える
0
You are missing some closing XML tags:

    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeIconFiles</key>
            <array/>
            <key>CFBundleTypeName</key>
            <string>a</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>b</string>
            </array>
        **</dict>
    </array>**
于 2020-01-22T06:59:53.383 に答える