小编Oma*_*ker的帖子

注册应用程序支持的文件类型以从其他应用程序打开文件

我希望我的应用程序能够从整个 iOS 的其他应用程序复制文件(图像、视频等),在浏览了苹果文档和一些在线资源后,我仍然无法让它工作。我附上了一张我的信息 plist 的图片。

在此处输入图片说明

这是该部分的 plist 代码:

<key>CFBundleDocumentTypes</key>
<array>
    <dict>
        <key>CFBundleTypeName</key>
        <string>All Files</string>
        <key>CFBundleTypeRole</key>
        <string>Editor</string>
        <key>LSHandlerRank</key>
        <string>Owner</string>
        <key>LSItemContentTypes</key>
        <array>
            <string>public.data</string>
            <string>public.content</string>
        </array>
    </dict>
</array>
Run Code Online (Sandbox Code Playgroud)

xcode ios uidocumentinteraction

7
推荐指数
1
解决办法
3486
查看次数

标签 统计

ios ×1

uidocumentinteraction ×1

xcode ×1