我在设置 TableView 中有一个单元格,我想将用户直接发送到 Appstore 并打开应用程序页面,以便他们可以发表评论。在 Stackoverflow 中有很多关于此的内容,但在 iOS8 和 Swift 中没有一个对我有用。
谢谢。
最佳答案
if let checkURL = NSURL(string: "http://www.itunes.com/yourAppLlink.html") {
if UIApplication.sharedApplication().openURL(checkURL) {
println("url sucefully opened")
}
} else {
println("invalid url")
}
关于ios - App Store 发表评论/评价 iOS 8 Swift,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28715172/