From af5e5af4da8ee177d40faf1b6c65a202139928fc Mon Sep 17 00:00:00 2001 From: Matt Coneybeare Date: Tue, 30 Sep 2014 15:16:16 -0400 Subject: [PATCH] Workaround for Apple bug where firstOtherButtonIndex is not being set --- Example/en.lproj/Main.storyboard | 5 ++--- Source/Armchair.swift | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/Example/en.lproj/Main.storyboard b/Example/en.lproj/Main.storyboard index 744eca5..c101f65 100644 --- a/Example/en.lproj/Main.storyboard +++ b/Example/en.lproj/Main.storyboard @@ -1,8 +1,7 @@ - + - - + diff --git a/Source/Armchair.swift b/Source/Armchair.swift index b5d670e..48e8212 100644 --- a/Source/Armchair.swift +++ b/Source/Armchair.swift @@ -1203,7 +1203,7 @@ public class Manager : ArmchairManager { if (alertView.cancelButtonIndex == buttonIndex || 0 == buttonIndex) { // they don't want to rate it dontRate() - } else if (showsRemindButton() && alertView.firstOtherButtonIndex == buttonIndex) { + } else if (showsRemindButton() && 1 == buttonIndex) { // remind them later remindMeLater() } else {