// 1. 评分:
NSString *str = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",@"1111791856"];
NSURL *aURL = [NSURL URLWithString:str];
if ([[UIApplication sharedApplication] canOpenURL:aURL]) {
[[UIApplication sharedApplication] openURL:aURL];
}
else
{
NSLog(@"不能打开app store评分");
}
// 2. 首页:
// NSString *str2 = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@", @"1111791856"];
// NSURL *bURL = [NSURL URLWithString:str2];
// if ([[UIApplication sharedApplication] canOpenURL:bURL]) {
// [[UIApplication sharedApplication] openURL:bURL];
// }
// else
// {
// NSLog(@"不能打开app store");
// }
IOS开发应用内跳转app store去下载、评分
最新推荐文章于 2021-12-22 09:15:18 发布