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];