gpt4 book ai didi

ipad - 如何让我的应用程序显示在 iPad 的 "Open In..."弹出列表中?

转载 作者:行者123 更新时间:2023-12-02 15:07:37 25 4
gpt4 key购买 nike

Possible Duplicate:
How do I associate file types with an iPhone application?

经过一番谷歌搜索后,我发现我要更改我的 plist 文件以包含“文档类型”---> 每个位置都有两个值的数组:文档类型名称、处理程序排名。

我这样做了,并编写了 public.pdf、public.png 等...作为文档类型名称,并且我尝试了每个可用的处理程序等级。但是,当我在 iPad 上测试它时,我的应用程序仍然不会显示在“打开方式...”列表中。

谁能帮我实现这个目标?

最佳答案

我还没有测试过,但这对你有用吗?

另请参阅以下链接:http://developer.apple.com/library/ios/#documentation/FileManagement/Conceptual/understanding_utis/understand_utis_declare/understand_utis_declare.html

<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>pdf</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>app.icns</string>
<key>CFBundleTypeName</key>
<string>public.pdf</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.pdf</string>
</array>
</dict>
<dict>
<key>CFBundleTypeExtensions</key>
<array>
<string>png</string>
</array>
<key>CFBundleTypeIconFile</key>
<string>app.icns</string>
<key>CFBundleTypeName</key>
<string>public.png</string>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>LSItemContentTypes</key>
<array>
<string>public.png</string>
</array>
</dict>
</array>

还有这个...

<key>UTImportedTypeDeclarations</key>
<array>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.data</string>
</array>
<key>UTTypeIdentifier</key>
<string>public.pdf</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>PDF</string>
<key>public.filename-extension</key>
<array>
<string>pdf</string>
</array>
<key>public.mime-type</key>
<string>application/pdf</string>
</dict>
</dict>
<dict>
<key>UTTypeConformsTo</key>
<array>
<string>public.image</string>
</array>
<key>UTTypeIdentifier</key>
<string>public.png</string>
<key>UTTypeTagSpecification</key>
<dict>
<key>com.apple.ostype</key>
<string>PNG</string>
<key>public.filename-extension</key>
<array>
<string>png</string>
</array>
<key>public.mime-type</key>
<string>image/png</string>
</dict>
</dict>
</array>

关于ipad - 如何让我的应用程序显示在 iPad 的 "Open In..."弹出列表中?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6397052/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com