跳转到应用详情界面:
UIApplication *app = [UIApplication sharedApplication];
NSString *str = [NSString stringWithFormat:@”在商店复制下来的链接”];
NSURL *url = [NSURL URLWithString:str];
if ([app canOpenURL:url]) {
[app openURL:url];
}
跳转到应用评论页
UIApplication *app = [UIApplication sharedApplication];
NSString *str = [NSString stringWithFormat:
@”itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d”,
你的应用id];
NSURL *url = [NSURL URLWithString:str];
if ([app canOpenURL:url]) {
[app openURL:url];
}