IOS增加UTI文件后缀名识别功能

2022-10-14  本文已影响0人  读书人heart

1、找到项目里面的info文件加入这段代码

<key>CFBundleDocumentTypes</key>
    <array>
        <dict>
            <key>CFBundleTypeName</key>
            <string>public.item</string>
            <key>LSHandlerRank</key>
            <string>Alternate</string>
            <key>LSItemContentTypes</key>
            <array>
                <string>public.item</string>
            </array>
        </dict>
    </array>

参考链接:
https://oomake.com/question/2103430
https://blog.csdn.net/ForeverMyheart/article/details/120184395

上一篇 下一篇

猜你喜欢

热点阅读