[英]How to set many url schemes in Info.plist
我想在Info.pist中设置多个url方案。 但我不知道如何在Info.plsit中设置许多url方案。 谁可以帮助我,我是一条鱼
Project Navigator-> YourInfo .plist点击它; 而不是点击图片示例中选定行下的“+”,您将获得其他网址方案的新项目。
这里有两个方案:
一://
二://
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>
CFBundleURLTypes CFBundleTypeRole CFBundleURLSchemes第三个CFBundleTypeRole编辑器CFBundleURLSchemes一二
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>
只需单击任意行上的+
并尝试键入URL,该URL将显示URL SCHEME作为数组。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.