OGeek|极客世界-中国程序员成长平台

标题: ios - 应用程序未出现在 "Open in"菜单中 [打印本页]

作者: 菜鸟教程小白    时间: 2022-12-11 19:53
标题: ios - 应用程序未出现在 "Open in"菜单中

我正在尝试让我的应用能够打开来自其他应用的音频文件。 我已经对 info.plist 文件进行了添加,但没有帮助。

以下是Info.plist中与分享相关的信息:

    <key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeIconFiles</key>
            <array>
                <string>Icon-App.png</string>
            </array>
            <key>CFBundleTypeName</key>
            <string>AudioFile</string>
            <key>CFBundleTypeRole</key>
            <string>Editor</string>
            <key>LSHandlerRank</key>
            <string>Owner</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>public.ulaw-audio</string>
                <string>public.aiff-audio</string>
                <string>public.mpeg-4-audio </string>
                <string>public.mp3</string>
                <string>public.audio</string>
            </array>
        </dict>
    </array>
    <key>CFBundleDisplayName</key>
    <string>$(PRODUCT_NAME)</string>

应该进行哪些更改以及如何以及在何处处理来自应用程序外部的输入数据?



Best Answer-推荐答案


注册音频的 URL Scheme,然后它将显示在列表中

关于ios - 应用程序未出现在 "Open in"菜单中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44590478/






欢迎光临 OGeek|极客世界-中国程序员成长平台 (http://ogeek.cn/) Powered by Discuz! X3.4