Workaround for Apple bug where firstOtherButtonIndex is not being set

This commit is contained in:
Matt Coneybeare
2014-09-30 15:16:16 -04:00
parent 0d5e03e72b
commit af5e5af4da
2 changed files with 3 additions and 4 deletions
+2 -3
View File
@@ -1,8 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?> <?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6246" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="d2j-86-NpT"> <document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="6245" systemVersion="13E28" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" initialViewController="d2j-86-NpT">
<dependencies> <dependencies>
<deployment identifier="iOS"/> <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6238"/>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="6239"/>
<capability name="Constraints to layout margins" minToolsVersion="6.0"/> <capability name="Constraints to layout margins" minToolsVersion="6.0"/>
</dependencies> </dependencies>
<scenes> <scenes>
+1 -1
View File
@@ -1203,7 +1203,7 @@ public class Manager : ArmchairManager {
if (alertView.cancelButtonIndex == buttonIndex || 0 == buttonIndex) { if (alertView.cancelButtonIndex == buttonIndex || 0 == buttonIndex) {
// they don't want to rate it // they don't want to rate it
dontRate() dontRate()
} else if (showsRemindButton() && alertView.firstOtherButtonIndex == buttonIndex) { } else if (showsRemindButton() && 1 == buttonIndex) {
// remind them later // remind them later
remindMeLater() remindMeLater()
} else { } else {