From 030239ce975d3a5ea32eb1f95bd80cab527f7d95 Mon Sep 17 00:00:00 2001 From: Eric Wu Date: Thu, 11 Aug 2016 15:44:03 +0800 Subject: [PATCH] remove makeKeyAndVisible of UIWindow --- SIAlertView/SIAlertView.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SIAlertView/SIAlertView.m b/SIAlertView/SIAlertView.m index 7a67df3..1f87b60 100644 --- a/SIAlertView/SIAlertView.m +++ b/SIAlertView/SIAlertView.m @@ -308,7 +308,7 @@ + (void)showBackground __si_alert_background_window = [[SIAlertBackgroundWindow alloc] initWithFrame:frame andStyle:[SIAlertView currentAlertView].backgroundStyle]; - [__si_alert_background_window makeKeyAndVisible]; + __si_alert_background_window.hidden = NO; __si_alert_background_window.alpha = 0; [UIView animateWithDuration:0.3 animations:^{ @@ -411,7 +411,7 @@ - (void)show window.rootViewController = viewController; self.alertWindow = window; } - [self.alertWindow makeKeyAndVisible]; + self.alertWindow.hidden = NO; [self validateLayout];