- 以
itms-apps://
或https://
开头的应用详情页链接,跳转到AppStore
![](https://i-blog.csdnimg.cn/blog_migrate/cdeebc22ce21312f96e96ed6bd7f627f.webp?x-image-process=image/format,png)
NSString * url = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",@"1014939463];
或者
NSString * url = [NSString stringWithFormat:@"https://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",@"1014939463];
// 惊奇的发现https://开头的连接也可以跳转到appstore
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
- 以
itms://
开头的应用详情页连接,跳转到 iTunes Store,打开的仍然是应用的下载页
![](https://i-blog.csdnimg.cn/blog_migrate/da23476e576c81b665cd3a916acc0860.webp?x-image-process=image/format,png)
NSString * url = [NSString stringWithFormat:@"itms://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",@"1014939463];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];
跳转到应用评分页
itms-apps://
和itms://
开头的链接都可以,而此时https://
开头的链接不可以
NSString * url = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",@"1014939463"];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:url]];