Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to set many url schemes in Info.plist

I want to set more than one url schemes in Info.pist. But I don't Know how to set many url schemes in Info.plsit. Who can help me, I'm a fish

like image 303
minji_LT Avatar asked Sep 09 '13 09:09

minji_LT


1 Answers

Project Navigator->YourInfo.plist click on it; than click "+" under selected line in picture sample, and you'll get new item for other url scheme.

new url scheme

here we have two schemes:

one://

two://

EDIT1: as text :

<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 third CFBundleTypeRole Editor CFBundleURLSchemes one two

EDIT2:just as text with third option as different:

<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>
like image 161
Eugene Pinchuk Avatar answered Sep 21 '22 13:09

Eugene Pinchuk