ios应用增加给appstore评分和进入app安装页面代码功能

来源:互联网 发布:淘宝快递占比丽 编辑:程序博客网 时间:2024/06/02 22:32

1.评分

NSString *str = [NSString stringWithFormat: @"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@", @"954270"]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];

2.软件首页

NSString *str2 = [NSString stringWithFormat: @"itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewSoftware?id=%@",  @"954270"]; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:str2]];

其中,数字954270部分为itunesconnect中的应用程序id。

原文博主链接:
http://www.lvtao.net/ios/507.html

0 0