我希望我的应用程序能够从整个 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)