简体   繁体   English

App Store留下评论/评分iOS 8 Swift

[英]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.

相关问题 在应用程序中进行评分和评论可将用户带到应用程序商店,从而离开我们的应用程序-完全不希望的 - Rate and Review within an app take the user to app store thus leave our app - Totaly Undesired 在iOS7中可能对应用程序进行评分和审查? - Rate and review within an app possible in iOS7? iOS App Store评论崩溃 - iOS App Store Review Crash 如何在iOS 7的我的应用程序中添加(撰写评论)/(为此应用评分) - How to add (write a review) / (rate this app) in my app on iOS 7 iOS App Store URL - 速率按钮 - iOS - iOS App Store URL - Rate button - iOS 在我的iOS应用中添加将评论评分功能写入我们 - Add write a review rate us feature to my iOS app 具有不正确IDFA信息的iOS应用程序是否可能通过App Store审核? - Is it possible that an iOS app with improper IDFA information passes App Store review? 使用开源SQLCipher for iOS将应用程序上传到应用商店进行审核 - Uploading app using open source SQLCipher for iOS to the app store for review 从App Store中删除iOS App版本并保留tvOS版本 - Remove iOS App Version from App Store and leave tvOS version Facebook赞按钮代表iOS App Store评论什么? - What does Facebook like button represent for iOS App Store review?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM