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

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
发布了13 篇原创文章 · 获赞 8 · 访问量 5万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章