本文修改了去評分功能(跳轉(zhuǎn)App Store)
iOS跳轉(zhuǎn)是通過URL來進(jìn)行的隧出,這里有兩種形式:
1.itms-apps請求:
iOS系統(tǒng)中可以從應(yīng)用內(nèi)或通過Safari跳轉(zhuǎn)App商店酷誓;
OS X系統(tǒng)中無法通過瀏覽器跳轉(zhuǎn)锣笨;
2.http請求:
iOS系統(tǒng)中可以通過大部分瀏覽器跳轉(zhuǎn)App商店揍堕;
OS X系統(tǒng)中可以通過瀏覽器跳轉(zhuǎn)iTunes商店喉恋;
跳轉(zhuǎn)例子:
static NSString * const reviewURL = @"itms-apps://itunes.apple.com/app/idxxxxxxxx”;
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:reviewURL]];
跳轉(zhuǎn)的URL
1.跳轉(zhuǎn)商店內(nèi)應(yīng)用首頁
itms-apps://itunes.apple.com/app/idxxxxxxxx
或
http://itunes.apple.com/app/idxxxxxxxx
2.跳轉(zhuǎn)商店內(nèi)應(yīng)用評論頁面
itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&id=xxxxxxxx
或
http://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&id=xxxxxxxx
涉及參數(shù):
type:
onlyLatestVersion: 只顯示關(guān)于最新版本的評論
pageNumber:
sortOrdering:排序方式
id: xxxxxxxx為app的appleID