samvermette/SVProgressHUD — Issue #39: HUD does not appear when showWithStatus: is in the same function as dismiss
Author: iivanoo
Created: 2011-12-19 22:50:13+00:00
State: open

Hi all,
I am facing a very strange problem, here is an excerpt of my code:

- (void)doSomething {
[SVProgressHUD showWithStatus:@"Downloading..."];
sleep(2);
[SVProgressHUD dismiss];
}

Why does the HUD appear only AFTER the 2 seconds passed, and then it suddenly disappears?
It seems to me that this is due to the fact the both showWithStatus and dismiss are in the same function.

Any ideas?