App Store 上评论的链接地址是 itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id = appID
所以可以用这段代码:(appID 对应自己的appID)
- -(void)goToAppStore
- {
- NSString *str = [NSString stringWithFormat:
- @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d",appID];
-
- //上面的地址在ios7以后无效了。ios7只能用下面的地址了
-
if(IOS7_OR_LATER)
str = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%d",appID];
- [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];
- }