Closed sergeyduhovich closed 6 years ago
in method - (void)hideUsingAnimation:(BOOL)animated line 233
- (void)hideUsingAnimation:(BOOL)animated
now:
[self animateIn:NO withType:self.animationType completion:^(BOOL finished) { [self done]; }];
should be:
__weak typeof(self)weakSelf = self; [self animateIn:NO withType:self.animationType completion:^(BOOL finished) { __strong typeof(self)strongSelf = weakSelf; [strongSelf done]; }];
The block is a NSStackBlock, so don't worry about the method call inside the block. It's not a retain cycle.
This is intentional. We do want to keep the hud around until the block is called.
in method
- (void)hideUsingAnimation:(BOOL)animated
line 233now:
should be: