iOS自定义URL方案以使用捆绑包标识符打开我的其他应用

时间:2018-08-06 17:58:34

标签: ios objective-c swift

我想使用例如com.mystorename.myfirstApp

的标识符打开我的应用

我正在尝试使用下面的代码打开它,但无法打开我的应用程序,我的第一个应用程序已安装在iPhone 7中

NSURL * url = [NSURL URLWithString:@"myfirstApp://"];
[[UIApplication sharedApplication] canOpenURL:url];

<array>
<dict>
    <key>CFBundleURLSchemes</key>
    <array>
        <string>myfirstApp</string>
    </array>
    <key>CFBundleURLName</key>
    <string>com.mystorename.myfirstApp</string>
</dict>

0 个答案:

没有答案
相关问题