ios appstore 下载链接 评价链接

1
2
3
4
5
//http://itunes.apple.com/us/app/idxxxxxxx
NSString *str = [NSString stringWithFormat:
@"http://itunes.apple.com/us/app/id%d",appid];

[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];
1
2
3
4
//跳转到评价页面
NSString *str = [NSString stringWithFormat:
@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id;=%d",appid];
[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];