iOS应用跳转到App Store评分

时间:2022-12-13 23:30:44

iOS应用跳转到App Store评分

1.跳转到应用评价页

NSString *urlStr = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@&pageNumber=0&sortOrdering=2&mt=8", APPID];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr]];

2.跳转到应用详情页

NSString *urlStr = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@", APPID];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlStr]];

appid是在iTunesConnect创建应用时自动生成的ID,如下图

iOS应用跳转到App Store评分