From: Jay Freeman (saurik) Date: Fri, 3 Feb 2017 07:35:22 +0000 (-0800) Subject: Fix OK button on iOS 8 (and maybe other versions). X-Git-Tag: v0.9.6001^0 X-Git-Url: https://git.saurik.com/safemode-ios.git/commitdiff_plain/HEAD?hp=70593971d6220c60aab66c3c5190294917ccd8b1 Fix OK button on iOS 8 (and maybe other versions). --- 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) {