您的位置:首页 > 移动开发

直接跳转到app store指定应用页面或评论页面

2012-08-13 18:34 573 查看
//    跳转到app store指定应用页面:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://itunes.apple.com/us/app/idYOURAPPID"]];

//    跳转到app store指定应用评论页面:
//    据说iOS 6.0及之前的 用这个:
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOURAPPID"]];

//     iOS 7.0 及以后用这个
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/app/idYOURAPPID"]];
//      但我试过后发现这个只能跳到应用页,没有选中【评论】

//      换成这个就可以了(这个和6.0的有细微差别,注意区分):
[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=YOURAPPID"]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: