CFBundleDocumentTypes - 在“照片”中列出我的应用

时间:2013-12-16 20:06:55

标签: ios iphone info.plist cfbundledocumenttypes

我已经使用以下信息设置了我的info.plist。当您从电子邮件中访问文件时,会列出我的应用程序,但是当有人在其照片应用程序中时,我希望我的应用程序列出。我还需要做些什么来列出照片应用程序吗?

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeIconFiles</key>
        <array/>
        <key>CFBundleTypeName</key>
        <string>MyApp</string>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.movie</string>
        </array>
        <key>NSExportableTypes</key>
        <array>
            <string>public.movie</string>
        </array>
    </dict>
</array>

e.g。我想要的是什么:

  1. 列表项
  2. 用户打开库存照片应用
  3. 选择视频
  4. 点击打开/分享按钮
  5. 我希望我的应用程序列在此处(Facebook,Vimeo,YouTube等旁边)

1 个答案:

答案 0 :(得分:0)

为了在“照片”应用中列出,您需要实施共享扩展名。 Docu