diff --git a/Pod/Classes/UIAlertController+Window.m b/Pod/Classes/UIAlertController+Window.m index f7221ce..a4c75b9 100644 --- a/Pod/Classes/UIAlertController+Window.m +++ b/Pod/Classes/UIAlertController+Window.m @@ -36,6 +36,10 @@ - (void)show { } - (void)show:(BOOL)animated { + if (self.presentingViewController) { + return; + } + self.alertWindow = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds]; self.alertWindow.rootViewController = [[UIViewController alloc] init]; self.alertWindow.windowLevel = UIWindowLevelAlert + 1;