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 这种在iOS11 是失效的
如果觉得我的文章对您有用,请随意打赏。你的支持将鼓励我继续创作!