我已经尝试了这么多的代码,但它并没有打开App Store的Review选项卡。可以提供任何一个链接swift-3.提前感谢。如何打开我的应用程序的App Store链接的评论选项卡,以便用户可以在swift 3中给我的应用程序评分?
谢谢!
我已经尝试了这么多的代码,但它并没有打开App Store的Review选项卡。可以提供任何一个链接swift-3.提前感谢。如何打开我的应用程序的App Store链接的评论选项卡,以便用户可以在swift 3中给我的应用程序评分?
谢谢!
使用此URL对我来说是完美的解决方案。它将用户直接带到Write a Review section
。感谢@Joseph Duffy。 必须设法
URL = itms-apps://itunes.apple.com/gb/app/idYOUR_APP_ID_HERE?action=write-review&mt=8
更换YOUR_APP_ID_HERE与的AppId
有关示例代码试试这个:
斯威夫特3时,Xcode 8.2.1:
let openAppStoreForRating = "itms-apps://itunes.apple.com/gb/app/id1136613532?action=write-review&mt=8"
if UIApplication.shared.canOpenURL(URL(string: openAppStoreForRating)!) {
UIApplication.shared.openURL(URL(string: openAppStoreForRating)!)
} else {
showAlert(title: "Cannot open AppStore",message: "Please select our app from the AppStore and write a review for us. Thanks!!")
}
这里showAlert是一个UIAlertController
的自定义函数。
谢谢!这正是我正在寻找的。 –
如果你喜欢,请选择它作为你的问题的答案。 谢谢 –
我可以再问一些问题吗? –
请参阅http://stackoverflow.com/questions/28715172/app-store-leave-a-review-rate-ios-8-swift?rq=1。它应该是一样的,我上周执行它非常相似 – Scriptable