当前位置:Gxlcms > html代码 > ios跳转appstore评论页面_html/css_WEB-ITnose

ios跳转appstore评论页面_html/css_WEB-ITnose

时间:2021-07-01 10:21:17 帮助过:19人阅读

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"]];

人气教程排行