diff --git a/PSTAlertController/PSTAlertController.m b/PSTAlertController/PSTAlertController.m index 489a75f..f1d23b0 100644 --- a/PSTAlertController/PSTAlertController.m +++ b/PSTAlertController/PSTAlertController.m @@ -287,6 +287,9 @@ - (void)showWithSender:(id)sender arrowDirection:(UIPopoverArrowDirection)arrowD // Use the frontmost viewController for presentation. while (controller.presentedViewController) { + if([controller.presentedViewController isBeingDismissed]) { + break; + } controller = controller.presentedViewController; }