[英]App Store Leave a Review/Rate iOS 8 Swift
I have a cell in the settings table view where i want to send the users straight to the Appstore and open the app page so they can leave a review. 我在设置表视图中有一个单元格,我想将用户直接发送到Appstore并打开应用程序页面,以便他们留下评论。 There is plenty of content about that in Stackoverflow but none worked for me in iOS8 with Swift. Stackoverflow中有很多有关此内容的内容,但在iOS8中使用Swift却无济于事。
Thanks. 谢谢。
if let checkURL = NSURL(string: "http://www.itunes.com/yourAppLlink.html") {
if UIApplication.sharedApplication().openURL(checkURL) {
println("url sucefully opened")
}
} else {
println("invalid url")
}
Try this- 尝试这个-
var path: NSURL = NSURL(string: "itms-apps://itunes.apple.com/us/app/YOUR_App_id")!
UIApplication.sharedApplication().openURL(path)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.