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 @ 2017-06-12 19:07  张玉宝  阅读(271)  评论(0编辑  收藏  举报
友情链接:回力鞋 | 中老年高档女装 | 武汉英语学校 | 托福网课 | 托福培训