jdg / MBProgressHUD

MBProgressHUD + Customizations
http://www.bukovinski.com/
MIT License
16.01k stars 3.56k forks source link

when use graceTime property,it seems not working #350

Closed swsdyg closed 8 years ago

swsdyg commented 8 years ago

when i use graceTime,the hud does not show forever,is there some wrong with the handleGraceTimer:

matej commented 8 years ago

Does this fix your issue? https://github.com/jdg/MBProgressHUD/pull/349

swsdyg commented 8 years ago

I change the code '(self.hasFinished) ' to (!(self.hasFinished) ),and it is ok. Did I use this property in the wrong way? The follow is my code MBProgressHUD *hud = [[MBProgressHUD alloc] initWithView:self.navigationController.view]; [self.view addSubview:hud]; hud.graceTime = .5f; [hud showAnimated:YES];