iOS 应用评分

mac2024-11-22  63

为了提高应用的用户体验,经常需要邀请用户对应用进行评分

应用评分无非就是跳转到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]];

 

最新回复(0)