Skip to content

Commit cb042bd

Browse files
committed
quiet compiler warnings about block implicitly retaining self
1 parent 0d04bac commit cb042bd

1 file changed

Lines changed: 11 additions & 11 deletions

File tree

WYPopoverController/WYPopoverController.m

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1626,12 +1626,12 @@ - (void)presentPopoverFromRect:(CGRect)aRect
16261626
}
16271627

16281628
[UIView animateWithDuration:WY_POPOVER_DEFAULT_ANIMATION_DURATION animations:^{
1629-
containerView.alpha = 1;
1630-
containerView.transform = CGAffineTransformIdentity;
1629+
self->containerView.alpha = 1;
1630+
self->containerView.transform = CGAffineTransformIdentity;
16311631
} completion:^(BOOL finished) {
1632-
if ([viewController isKindOfClass:[UINavigationController class]] == NO)
1632+
if ([self->viewController isKindOfClass:[UINavigationController class]] == NO)
16331633
{
1634-
[viewController viewDidAppear:YES];
1634+
[self->viewController viewDidAppear:YES];
16351635
}
16361636
}];
16371637
}
@@ -2027,19 +2027,19 @@ - (void)dismissPopoverAnimated:(BOOL)aAnimated callDelegate:(BOOL)callDelegate
20272027

20282028
completionBlock = ^(BOOL finished) {
20292029

2030-
[overlayView removeFromSuperview];
2031-
overlayView = nil;
2030+
[self->overlayView removeFromSuperview];
2031+
self->overlayView = nil;
20322032

2033-
if ([viewController isKindOfClass:[UINavigationController class]] == NO)
2033+
if ([self->viewController isKindOfClass:[UINavigationController class]] == NO)
20342034
{
2035-
[viewController viewDidDisappear:aAnimated];
2035+
[self->viewController viewDidDisappear:aAnimated];
20362036
}
20372037

20382038
if (callDelegate)
20392039
{
2040-
if (delegate && [delegate respondsToSelector:@selector(popoverControllerDidDismissPopover:)])
2040+
if (self->delegate && [self->delegate respondsToSelector:@selector(popoverControllerDidDismissPopover:)])
20412041
{
2042-
[delegate popoverControllerDidDismissPopover:self];
2042+
[self->delegate popoverControllerDidDismissPopover:self];
20432043
}
20442044
}
20452045
};
@@ -2074,7 +2074,7 @@ - (void)dismissPopoverAnimated:(BOOL)aAnimated callDelegate:(BOOL)callDelegate
20742074
if (aAnimated)
20752075
{
20762076
[UIView animateWithDuration:WY_POPOVER_DEFAULT_ANIMATION_DURATION animations:^{
2077-
containerView.alpha = 0;
2077+
self->containerView.alpha = 0;
20782078
} completion:^(BOOL finished) {
20792079
completionBlock(finished);
20802080
}];

0 commit comments

Comments
 (0)