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 sharedApplication] openURL:[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
本文详细介绍了如何通过Objective-C代码跳转至iOS应用的下载页面和评论页面,包括使用`itunes-apps://`链接格式和`[[UIApplication sharedApplication] openURL:]`方法的应用场景和步骤。
1614

被折叠的 条评论
为什么被折叠?



