在应用发布前在应用商店给我评分 URL
Rate Me URL on app store before App Published
我正在 xcode 6.1 - Swift.
中实现评分功能
我正在关注 this 教程,我的问题是如何在应用程序发布之前在应用程序商店中找到它的 URL,即是否有默认的 URL 我们pre-emptively 添加 App Name?
使用 AlertController 显示评分选项
var alert = UIAlertController(title: "Rate Me", message: "Thanks for using Lab Cases- Ver 1 Newbrn and Obstetric Haematology", preferredStyle: UIAlertControllerStyle.Alert)
alert.addAction(UIAlertAction(title: "Rate Lab Cases", style: UIAlertActionStyle.Default, handler: { alertAction in
UIApplication.sharedApplication().openURL(NSURL(string : "itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=<iTUNES CONNECT APP ID>")!)
alert.dismissViewControllerAnimated(true, completion: nil)
}))
alert.addAction(UIAlertAction(title: "No Thanks", style: UIAlertActionStyle.Default, handler: { alertAction in
NSUserDefaults.standardUserDefaults().setBool(true, forKey: "neverRate")
alert.dismissViewControllerAnimated(true, completion: nil)
}))
alert.addAction(UIAlertAction(title: "Maybe Later", style: UIAlertActionStyle.Default, handler: { alertAction in
alert.dismissViewControllerAnimated(true, completion: nil)
}))
self.presentViewController(alert, animated: true, completion: nil)
URL 的调用在这里 -
UIApplication.sharedApplication().openURL(NSURL(string : "itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=<iTUNES CONNECT APP ID>")!)
alert.dismissViewControllerAnimated(true, completion: nil)
提前致谢
C
您可以从 https://itunesconnect.apple.com
获得 URL
使用您的 apple id 登录,转到“我的应用程序”部分,Select 应用程序(或新建)
在子菜单上,More/View 在 App Store 上。
这是实际应用的 link
我正在 xcode 6.1 - Swift.
中实现评分功能我正在关注 this 教程,我的问题是如何在应用程序发布之前在应用程序商店中找到它的 URL,即是否有默认的 URL 我们pre-emptively 添加 App Name?
使用 AlertController 显示评分选项
var alert = UIAlertController(title: "Rate Me", message: "Thanks for using Lab Cases- Ver 1 Newbrn and Obstetric Haematology", preferredStyle: UIAlertControllerStyle.Alert) alert.addAction(UIAlertAction(title: "Rate Lab Cases", style: UIAlertActionStyle.Default, handler: { alertAction in UIApplication.sharedApplication().openURL(NSURL(string : "itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=<iTUNES CONNECT APP ID>")!) alert.dismissViewControllerAnimated(true, completion: nil) })) alert.addAction(UIAlertAction(title: "No Thanks", style: UIAlertActionStyle.Default, handler: { alertAction in NSUserDefaults.standardUserDefaults().setBool(true, forKey: "neverRate") alert.dismissViewControllerAnimated(true, completion: nil) })) alert.addAction(UIAlertAction(title: "Maybe Later", style: UIAlertActionStyle.Default, handler: { alertAction in alert.dismissViewControllerAnimated(true, completion: nil) })) self.presentViewController(alert, animated: true, completion: nil)
URL 的调用在这里 -
UIApplication.sharedApplication().openURL(NSURL(string : "itms-apps://ax.itunes.apple.com/WebObjects/MZStore.woa/wa/viewContentsUserReviews?type=Purple+Software&id=<iTUNES CONNECT APP ID>")!)
alert.dismissViewControllerAnimated(true, completion: nil)
提前致谢 C
您可以从 https://itunesconnect.apple.com
获得 URL使用您的 apple id 登录,转到“我的应用程序”部分,Select 应用程序(或新建)
在子菜单上,More/View 在 App Store 上。
这是实际应用的 link