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

 

1 NSString *str = [NSString stringWithFormat:
2 
3                  @"itms-apps://itunes.apple.com/cn/app/id%@?mt=8", appid];
4 
5 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

 

posted @ 2015-07-24 10:14  鸿鹄当高远  阅读(387)  评论(0编辑  收藏  举报