在应用链接到速率的应用 [英] In App Link To Rate An App

查看:190
本文介绍了在应用链接到速率的应用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道这已经在过去几年里,交通拥挤的问题。

I realise this has been a heavy traffic question over the past few years.

我看过的每一个问题和答案,每一个注释,再发表评论。答案和注释都在范围广泛。苹果公司是著名的不断变化的风景。

I have looked at every question and answer, and every comment and re-comment. Answers and comments are wide in range. Apple are famous for changing the landscape continuously.

我只想最新的方法,以允许用户通过应用程序内的一个按钮评分我的应用程序。

I would just like the most updated method to allow the user to rate my app via a button in-app.

这是我的最新版本:

@IBAction func RateUs(sender: AnyObject) {
  UIApplication.sharedApplication().openURL(NSURL(string : "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=\(111222333)&onlyLatestVersion=true&pageNumber=0&sortOrdering=1)")!);
}

其中, 111222333 是我的应用程序ID。

这是正确的?我即将提交我的应用程序进行审查,并需要使用什么是目前被苹果接受。谢谢!

Is this correct? I am about to submit my app for review and need to use what is currently accepted by Apple. Thanks!

编辑:

可能的修改:

UIApplication.sharedApplication().openURL(NSURL(string : "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?‌​type=Purple+Software&id=\(111222333)&onlyLatestVersion=true&pageNumber=0&sortOrde‌​ring=1)")!);

合并:类型=紫色+软件(按在下面的评论实物建议)

incorporating: type=Purple+Software (as per kind suggestion in comment below).

或许我应该尝试:

func jumpToAppStore(appId: String) {
let url = "itms-apps://itunes.apple.com/app/id\(appId)"
UIApplication.sharedApplication().openURL(NSURL(string: url)!)

}

根据一个公认的答案在这里:应用程序商店链接"率/评论此应用程序" 。日二○一五年八月二十〇日

as per an accepted answer here : App store link for "rate/review this app" dated Aug 20, 2015.

推荐答案

在额外的搜索,重新搜索和有益的意见,我已经修改了我的code为:

After additional searches, re-searches and helpful comments, I have amended my code to:

@IBAction func RateUs(sender: AnyObject) {
  UIApplication.sharedApplication().openURL(NSURL(string : "itms-apps://itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?id=\(1081797746)&onlyLatestVersion=true&pageNumber=0&sortOrdering=1&type=Purple+Software)")!);
}

这篇关于在应用链接到速率的应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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