很多用戶用了好軟件後忘記或嫌麻煩而不去 App Store 進行打分評星,爲此開發者可以在應用中加入打分按鈕,點擊後直接跳轉到 App Store 的評分界面。
App Store 上評論的鏈接地址是 itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id = appID
所以可以用這段代碼
NSString *str = [NSString stringWithFormat:
@"itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa /wa/viewContentsUserReviews?type=Purple+Software&id=%d",
m_appleID ];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:str]];