问题描述
我意识到这在过去几年中一直是一个交通繁忙的问题.
I realise this has been a heavy traffic question over the past few years.
我查看了每个问题和答案,以及每个评论和重新评论.答案和评论范围很广.Apple 以不断改变景观而闻名.
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.
这是我拥有的最新版本:
This is what I have as the most updated version:
@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.
where 111222333
is my app ID.
这是正确的吗?我即将提交我的应用程序以供审核,并且需要使用 Apple 当前接受的应用程序.谢谢!
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&sortOrdering=1)")!);
合并:type=Purple+Software
(根据下面评论中的建议).
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)!)
}
根据此处接受的答案:应用商店链接"评价/评论此应用",日期为 2015 年 8 月 20 日.
as per an accepted answer here : App store link for "rate/review this app" dated Aug 20, 2015.
推荐答案
经过额外的搜索、重新搜索和有用的评论,我将代码修改为:
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)")!);
}
这篇关于应用内链接以评价应用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!