Open steipete opened 13 years ago
I agree this is sort of a bug. I am using an ATMHud to display a HUD while loading an image picker but when dismissing it too fast the HUD is still there (and sometimes uncentered) : http://cl.ly/0h2w2h0N3z3g3q2H0N16 I will try your workaround in the meanwhile and maybe later post some code to correct the issue if I can find the time.
bug: http://cl.ly/3G1z1w3i1l0x3q200n46 workaround: http://cl.ly/2O251T1C0F0Y0C0n101k
If content is changed in the same runloop, the animations somehow freak out and only crap is displayed (too small, image totally offset, etc...
my current (hacky) fix is to change stuff in the next runloop.
RunAfterDelay(0.0, ^{ [self.progressHUD setActivity:NO]; [self.progressHUD setCaption:message]; [self.progressHUD setImage:[[UIImage imageNamed:@"x"] imageTintedWithColor:[UIColor whiteColor]]]; [self.progressHUD update]; [self.progressHUD hideAfter:5.0]; });
it's created with following function...
if (!self.progressHUD) { self.progressHUD = [PSATMHud make]; [self.navigationController.view addSubview:self.progressHUD.view]; [self.progressHUD setActivity:YES]; [self.progressHUD setCaption: _(@"PushRequestingToken")]; [self.progressHUD show]; }