let urlString = "itms-apps://itunes.apple.com/cn/app/id您的appid?mt=8&action=write-review"
let url = URL(string: urlString)
//根据iOS系统版本,分别处理
if #available(iOS 10, *) {
UIApplication.shared.open(url!, options: [:],
completionHandler: {
(success) in
})
} else {
UIApplication.shared.openURL(url!)
}
以前的跳转链接为 itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&id=xxxxxxxx
在ios 11 是失效的