您的当前位置:首页正文

ios跳转appstore评论页面_html/css

2020-11-27 来源:二三四教育网

iOS7以前是这样的:

  1. NSString * nsStringToOpen = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",nsAppId ];
  2. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:nsStringToOpen]];
iOS8以后那样是没有反应的,只能这样才行


找到应用程序的描述链接,比如:http://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"itms://itunes.apple.com/gb/app/yi-dong-cai-bian/id391945719?mt=8"]];
显示全文