App Store 留下一个 Review/Rate iOS 8 Swift
App Store Leave a Review/Rate iOS 8 Swift
我在设置 table 视图中有一个单元格,我想将用户直接发送到 Appstore 并打开应用程序页面,以便他们可以发表评论。 Whosebug 中有很多关于此的内容,但 none 在 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")
}
试试这个-
var path: NSURL = NSURL(string: "itms-apps://itunes.apple.com/us/app/YOUR_App_id")!
UIApplication.sharedApplication().openURL(path)
我在设置 table 视图中有一个单元格,我想将用户直接发送到 Appstore 并打开应用程序页面,以便他们可以发表评论。 Whosebug 中有很多关于此的内容,但 none 在 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")
}
试试这个-
var path: NSURL = NSURL(string: "itms-apps://itunes.apple.com/us/app/YOUR_App_id")!
UIApplication.sharedApplication().openURL(path)