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

转载自: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]];










posted on 2012-08-31 10:01  yang3wei  阅读(405)  评论(0编辑  收藏  举报