mirror of
https://github.com/UrbanApps/Armchair.git
synced 2026-07-15 09:12:50 +02:00
changed ordering and make use of cancel action
This commit is contained in:
@@ -1262,9 +1262,9 @@ open class Manager : ArmchairManager {
|
|||||||
} else {
|
} else {
|
||||||
/// Didn't show storekit prompt, present app store manually
|
/// Didn't show storekit prompt, present app store manually
|
||||||
let alertView : UIAlertController = UIAlertController(title: reviewTitle, message: reviewMessage, preferredStyle: UIAlertControllerStyle.alert)
|
let alertView : UIAlertController = UIAlertController(title: reviewTitle, message: reviewMessage, preferredStyle: UIAlertControllerStyle.alert)
|
||||||
alertView.addAction(UIAlertAction(title: cancelButtonTitle, style:UIAlertActionStyle.default, handler: {
|
alertView.addAction(UIAlertAction(title: rateButtonTitle, style:UIAlertActionStyle.cancel, handler: {
|
||||||
(alert: UIAlertAction!) in
|
(alert: UIAlertAction!) in
|
||||||
self.dontRate()
|
self._rateApp()
|
||||||
}))
|
}))
|
||||||
if (showsRemindButton()) {
|
if (showsRemindButton()) {
|
||||||
alertView.addAction(UIAlertAction(title: remindButtonTitle!, style:UIAlertActionStyle.default, handler: {
|
alertView.addAction(UIAlertAction(title: remindButtonTitle!, style:UIAlertActionStyle.default, handler: {
|
||||||
@@ -1272,9 +1272,9 @@ open class Manager : ArmchairManager {
|
|||||||
self.remindMeLater()
|
self.remindMeLater()
|
||||||
}))
|
}))
|
||||||
}
|
}
|
||||||
alertView.addAction(UIAlertAction(title: rateButtonTitle, style:UIAlertActionStyle.cancel, handler: {
|
alertView.addAction(UIAlertAction(title: cancelButtonTitle, style:UIAlertActionStyle.cancel, handler: {
|
||||||
(alert: UIAlertAction!) in
|
(alert: UIAlertAction!) in
|
||||||
self._rateApp()
|
self.dontRate()
|
||||||
}))
|
}))
|
||||||
|
|
||||||
ratingAlert = alertView
|
ratingAlert = alertView
|
||||||
|
|||||||
Reference in New Issue
Block a user