ios:给appstore评分和进入app安装页面代码

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

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

       其中,红色字体部分为itunesconnect中的应用程序id。

 

http://www.360doc.com/content/13/0124/10/11991_262094320.shtml

http://blog.csdn.net/mygamezone/article/details/9034877

你可能感兴趣的:(ios,评分,appstore,app安)