App Store留下评论/评分iOS 8 Swift [英] App Store Leave a Review/Rate iOS 8 Swift

查看:119
本文介绍了App Store留下评论/评分iOS 8 Swift的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在设置表视图中有一个单元格,我想将用户直接发送到Appstore并打开应用程序页面,以便他们留下评论。 Stackoverflow中有很多有关此内容的内容,但是在iOS8中使用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: "http://www.itunes.com/yourAppLlink.html") {
    if UIApplication.sharedApplication().openURL(checkURL) {
         println("url sucefully opened")
    }
} else {
    println("invalid url")
}

这篇关于App Store留下评论/评分iOS 8 Swift的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆