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萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章