跳转到app下载页面和app评论页面

来源:互联网 发布:淘宝大学关键词 编辑:程序博客网 时间:2024/05/01 22:16

1、跳转到app下载页面

 NSString *appID = @"548560575"; // developer账户登陆itunes connect创建应用时会产生一个app id

 NSString *appURL = [NSString stringWithFormat:@"itms-apps://itunes.apple.com/app/id%@",appID];

 [[UIApplication sharedApplication] openURL:[NSURL URLWithString:appURL]];


2、跳转到app评论页面

 NSString *appID = @"548560575"; // 用developer账户登陆itunes connect创建应用时会产生一个app id

 NSString *appURL = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%@",appID];

[[UIApplication sharedApplicationopenURL:[NSURL URLWithString:appURL]];


具体可查看:
https://developer.apple.com/library/ios/#qa/qa2008/qa1629.html
http://stackoverflow.com/questions/433907/how-to-link-to-apps-on-the-app-store
原创粉丝点击