Skip to content
This repository has been archived by the owner on May 28, 2024. It is now read-only.

Bug when changing content too fast #2

Open
steipete opened this issue Mar 17, 2011 · 1 comment
Open

Bug when changing content too fast #2

steipete opened this issue Mar 17, 2011 · 1 comment

Comments

@steipete
Copy link
Contributor

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];
}

@rogmabi
Copy link

rogmabi commented Sep 17, 2011

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants