您的位置:首页 > 移动开发

如何点击链接直接跳转到app store指定应用下载页面

2012-08-31 10:01 766 查看
转载自:http://blog.csdn.net/zengconggen/article/details/6789420

NSString *str = [NSString stringWithFormat:@"http://itunes.apple.com/us/app/id%d", 436957167];
[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];

其中,436957167 是 app 的 id
附:跳转到某 app 的评价页面:

NSString *str = [NSString stringWithFormat:@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=%d", 436957167];
[[UIApplication sharedApplication] openURL:[NSURL urlWithString:str]];
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: