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. There is plenty of content about that in Stackoverflow but none worked for me in iOS8 with Swift.


if let checkURL = NSURL(string: "") {
    if UIApplication.sharedApplication().openURL(checkURL) {
         println("url sucefully opened")
} else {
    println("invalid url")