Permalink
Browse files

Calling hudWasHidden: at the end of the done method.

  • Loading branch information...
1 parent fa5cc8e commit fdd147f3c2b6a31dba576139da3b2d43cf786d0a @matej matej committed Sep 19, 2013
Showing with 4 additions and 4 deletions.
  1. +4 −4 MBProgressHUD.m
View
@@ -359,17 +359,17 @@ - (void)animationFinished:(NSString *)animationID finished:(BOOL)finished contex
- (void)done {
isFinished = YES;
self.alpha = 0.0f;
- if ([delegate respondsToSelector:@selector(hudWasHidden:)]) {
- [delegate performSelector:@selector(hudWasHidden:) withObject:self];
+ if (removeFromSuperViewOnHide) {
+ [self removeFromSuperview];
}
#if NS_BLOCKS_AVAILABLE
if (self.completionBlock) {
self.completionBlock();
self.completionBlock = NULL;
}
#endif
- if (removeFromSuperViewOnHide) {
- [self removeFromSuperview];
+ if ([delegate respondsToSelector:@selector(hudWasHidden:)]) {
+ [delegate performSelector:@selector(hudWasHidden:) withObject:self];
}
}

0 comments on commit fdd147f

Please sign in to comment.