iOS 跳转到App store 评分 页面

作者: cb6a1e2768d1 | 来源:发表于2016-10-12 21:48 被阅读335次

更改自己的id

//https://itunes.apple.com/us/app/wo-zheng-ting-ju-ting-mei/id1146314461?l=zh&ls=1&mt=8
        NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",@"1146314461"];
        NSURL * url = [NSURL URLWithString:str];
        
        if ([[UIApplication sharedApplication] canOpenURL:url])
        {
            [[UIApplication sharedApplication] openURL:url];
        }
        else
        {
            NSLog(@"can not open");
        }

相关文章

网友评论

    本文标题:iOS 跳转到App store 评分 页面

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