summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2017-02-02 23:35:22 -0800
committerJay Freeman (saurik) <saurik@saurik.com>2017-02-02 23:35:22 -0800
commitfdf2ae4dbf1d4c961884da76bc3a293609e502d0 (patch)
tree6aaab54c097e3b4e08b93265f07cac28e66bc88f
parent70593971d6220c60aab66c3c5190294917ccd8b1 (diff)
Fix OK button on iOS 8 (and maybe other versions).
-rw-r--r--Tweak.xm5
1 files changed, 4 insertions, 1 deletions
diff --git a/Tweak.xm b/Tweak.xm
index f2748d6..189b39b 100644
--- a/Tweak.xm
+++ b/Tweak.xm
@@ -91,7 +91,10 @@ void SafeModeButtonClicked(int button) {
void SafeModeButtonClicked(id self, int button) {
SafeModeButtonClicked(button);
- [self deactivateForButton];
+ if ([self respondsToSelector:@selector(deactivateForButton)])
+ [self deactivateForButton];
+ else
+ [self dismiss];
}
void SafeModeAlertItem$alertSheet$buttonClicked$(id self, SEL sel, id sheet, int button) {