【发布时间】:2012-11-26 14:31:51
【问题描述】:
所以我一直在经历“Document Interaction Programming Topics for iOS”。 我已经能够通过 Mail 实现“使用 myapp 打开”选项,想知道如何根据指定的文件类型将选项更改为“与 myapp 共享”? 这是我尝试过的:
<key>CFBundleDocumentTypes</key>
<array>
<dict>
<key>CFBundleTypeName</key>
<string>Document</string>
<key>LSHandlerRank</key>
<string>Alternate</string>
<key>CFBundleTypeRole</key>
<string>Owner</string>
<key>LSItemContentTypes</key>
<array>
<string>public.data</string>
</array>
</dict>
</array>
【问题讨论】:
-
只是为了说明更多,我想注册我的应用程序以从任何外部应用程序打开文档。
标签: iphone objective-c uidocumentinteraction cfbundleidentifier