Skip to content

Commit 9b7e4a4

Browse files
committed
Set overlayView to nil after popover dismissal. Otherwise isPopoverVisible returns true even after dismissPopoverAnimated call
1 parent b2ce089 commit 9b7e4a4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

WYPopoverController/WYPopoverController.m

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,6 +1853,7 @@ - (void)dismissPopoverAnimated:(BOOL)aAnimated callDelegate:(BOOL)callDelegate
18531853
completionBlock = ^(BOOL finished) {
18541854

18551855
[overlayView removeFromSuperview];
1856+
overlayView = nil;
18561857

18571858
if ([viewController isKindOfClass:[UINavigationController class]] == NO)
18581859
{

0 commit comments

Comments
 (0)