如何注册我的iOS应用以打开某些文件类型?

时间:2012-07-02 05:11:04

标签: ios info-plist

我在这个问题上苦苦挣扎,通过我的ios应用程序发送和接收数据。 它发送正常,但是当我必须打开(按住文件)时,如果我想打开我的应用程序,则提示我。我在ipz上设置了文件扩展名。 这是我的信息播放器的副本。

我错过了什么吗?

<plist version="1.0">
<dict>
<key>CFBundleDevelopmentRegion</key>
<string>English</string>
<key>CFBundleDisplayName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundleDocument</key>
<array>
    <dict>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>CFBundleTypename</key>
        <string>iPrick List Document</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.ipricklist.iPrickList.ipz</string>
        </array>
    </dict>
</array>
<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeIconFiles</key>
        <array>
            <string>logo1</string>
        </array>
        <key>CFBundleTypeName</key>
        <string>iPrick List Document</string>
        <key>CFBundleTypeOSTypes</key>
        <array>
            <string>com.ipricklist.iPrickList</string>
        </array>
        <key>LSItemContentTypes</key>
        <array>
            <string>com.ipricklist.iPrickList.ipz</string>
        </array>
    </dict>
</array>
<key>CFBundleExecutable</key>
<string>${EXECUTABLE_NAME}</string>
<key>CFBundleIconFiles</key>
<array>
    <string>logo1.png</string>
    <string>Default@2x.png</string>
    <string>Default.png</string>
    <string>logo2.png</string>
</array>
<key>CFBundleIcons</key>
<dict>
    <key>CFBundlePrimaryIcon</key>
    <dict>
        <key>CFBundleIconFiles</key>
        <array>
            <string>logo1.png</string>
            <string>Default@2x.png</string>
            <string>Default.png</string>
            <string>logo2.png</string>
        </array>
        <key>UIPrerenderedIcon</key>
        <true/>
    </dict>
</dict>
<key>CFBundleIdentifier</key>
<string>com.ipricklist.iPrickList</string>
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleName</key>
<string>${PRODUCT_NAME}</string>
<key>CFBundlePackageType</key>
<string>APPL</string>
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
<string>1.0</string>
<key>LSRequiresIPhoneOS</key>
<true/>
<key>NSMainNibFile</key>
<string>MainWindow</string>
<key>UIFileSharingEnabled</key>
<true/>
<key>UIPrerenderedIcon</key>
<true/>
<key>UTExportedTypeDeclarations</key>
<array>
    <dict>
        <key>UTTypeConformsTo</key>
        <array>
            <string>public.data</string>
        </array>
        <key>UTTypeDescription</key>
        <string>iPrick List Document</string>
        <key>UTTypeIdentifier</key>
        <string>com.ipricklist.iPrickList.ipz</string>
        <key>UTTypeSize320IconFile</key>
        <string>logo1</string>
        <key>UTTypeSize64IconFile</key>
        <string>logo2</string>
        <key>UTTypeTagSpecifications</key>
        <dict>
            <key>public.filename-extension</key>
            <string>ipz</string>
            <key>public.mime-type</key>
            <string>application/iPrickList</string>
        </dict>
    </dict>
</array>
</dict>
</plist>

0 个答案:

没有答案