We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2884581 commit 8324ee6Copy full SHA for 8324ee6
1 file changed
WYPopoverController/WYPopoverController.m
@@ -2030,8 +2030,20 @@ - (void)dismissPopoverAnimated:(BOOL)aAnimated callDelegate:(BOOL)callDelegate
2030
2031
completionBlock = ^(BOOL finished) {
2032
2033
- [overlayView removeFromSuperview];
2034
- overlayView = nil;
+ if (aAnimated)
+ {
2035
+ [UIView animateWithDuration:WY_POPOVER_DEFAULT_ANIMATION_DURATION animations:^{
2036
+ overlayView.alpha = 0;
2037
+ } completion:^(BOOL finished) {
2038
+ [overlayView removeFromSuperview];
2039
+ overlayView = nil;
2040
+ }];
2041
+ }
2042
+ else
2043
2044
2045
2046
2047
2048
if ([viewController isKindOfClass:[UINavigationController class]] == NO)
2049
{
0 commit comments