If I call + (instancetype)showHUDAddedTo:(UIView *)view animated:(BOOL)animated; twice and then + (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated; twice, it doesn't hide the MBProgressHUD.
The problem is in the method + (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated; that return's the same view in booth method calls.
So I modify it to look for that hasn't finished yet.
I found a problem.
If I call
+ (instancetype)showHUDAddedTo:(UIView *)view animated:(BOOL)animated;
twice and then+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
twice, it doesn't hide theMBProgressHUD
.The problem is in the method
+ (BOOL)hideHUDForView:(UIView *)view animated:(BOOL)animated;
that return's the same view in booth method calls. So I modify it to look for that hasn't finished yet.