我想在 Info.plist 中设置多个 url schemes。但我不知道如何在 Info.plist 中设置许多 url 方案。谁能帮帮我,我是一条鱼
最佳答案
Project Navigator->YourInfo.plist 点击它; 而不是单击图片示例中选定行下的“+”,您将获得其他 url 方案的新项目。
这里我们有两种方案:
一个://
两个://
EDIT1:作为文本:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>one</string>
<string>two</string>
</array>
</dict>
</array>
CFBundleURL 类型 CFBundleTypeRole CFBundleURL方案 第三 CFBundleTypeRole 编辑 CFBundleURL方案 一 二
EDIT2:与第三个选项不同的文本:
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleTypeRole</key>
<string>Viewer</string>
<key>CFBundleURLSchemes</key>
<array>
<string>three</string>
</array>
</dict>
<dict>
<key>CFBundleTypeRole</key>
<string>Editor</string>
<key>CFBundleURLSchemes</key>
<array>
<string>one</string>
<string>two</string>
</array>
</dict>
</array>
关于iphone - 如何在 Info.plist 中设置多个 url schemes,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18695764/