ios应用评分

  • 为了提高应用的用户体验,经常需要邀请用户对应用进行评分
  • 应用评分无非就是跳转到AppStore展示自己的应用,然后由用户自己撰写评论
  • 如何跳转到AppStore,并且展示自己的应用
  • 方法1

  NSString *appid = @"444934666";

  NSString *str = [NSString stringWithFormat:

                 @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", appid];

  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

 

  • 方法2

  NSString *str = [NSString stringWithFormat:

                 @"itms-apps://itunes.apple.com/cn/app/id%@?mt=8", appid];

  [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

posted @ 2016-01-25 14:30  xiaocaoera  阅读(299)  评论(0编辑  收藏  举报