美文网首页
从APP中跳转到QQ音乐播放器

从APP中跳转到QQ音乐播放器

作者: CMD独白 | 来源:发表于2016-06-23 11:03 被阅读111次

    在要跳转的方法里面添加以下代码:

    NSURL *myUrl = [NSURL URLWithString:@"QQMusic://abcde"];
        
        if([[UIApplication sharedApplication] canOpenURL:myUrl]){
            [[UIApplication sharedApplication] openURL:myUrl];
        }else{
            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms-apps://"]];
        }
    

    相关文章

      网友评论

          本文标题:从APP中跳转到QQ音乐播放器

          本文链接:https://www.haomeiwen.com/subject/wcwndttx.html