Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Calling hudWasHidden: at the end of the done method.

  • Loading branch information...
commit fdd147f3c2b6a31dba576139da3b2d43cf786d0a 1 parent fa5cc8e
@matej matej authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 MBProgressHUD.m
View
8 MBProgressHUD.m
@@ -359,8 +359,8 @@ - (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) {
@@ -368,8 +368,8 @@ - (void)done {
self.completionBlock = NULL;
}
#endif
- if (removeFromSuperViewOnHide) {
- [self removeFromSuperview];
+ if ([delegate respondsToSelector:@selector(hudWasHidden:)]) {
+ [delegate performSelector:@selector(hudWasHidden:) withObject:self];
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.