美文网首页iOS开发
跳转AppStore评论

跳转AppStore评论

作者: 雪中客 | 来源:发表于2016-03-01 13:41 被阅读67次

    直接代码

    if ([[[UIDevice currentDevice] systemVersion] floatValue] >= 7.0) {
            NSString *str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/idxxxxxxx"];
            
            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
    
        }else{
            NSString *str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=xxxxxxx" ];
            
            [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
        }
    

    相关文章

      网友评论

        本文标题:跳转AppStore评论

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