Skip to content

Commit

Permalink
Set removeFromSuperViewOnHide to YES for convenience methods
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvo van Beek committed Aug 18, 2014
1 parent d9886df commit cb56321
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions MBProgressHUD.m
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ @implementation MBProgressHUD

+ (MB_INSTANCETYPE)showHUDAddedTo:(UIView *)view animated:(BOOL)animated {
MBProgressHUD *hud = [[self alloc] initWithView:view];
hud.removeFromSuperViewOnHide = YES;
[view addSubview:hud];
[hud show:animated];
return MB_AUTORELEASE(hud);
Expand Down

0 comments on commit cb56321

Please sign in to comment.