热搜:NVER node 开发 php

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

2024-11-09 16:25:01
ios 跳转appstore评论页面_html/css_WEB-ITnose

iOS7以前是这样的:

  1.  NSString  * nsStringToOpen = [NSString  stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",nsAppId  ];  
  2.       
  3.     [[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"]];