samvermette/SVProgressHUD — Issue #42: hud not shown until method next view controller pushed
Author: autodidakto
Created: 2012-01-10 17:18:25+00:00
State: open

I have something like this:

-(IBAction)longProcess
{
[SVProgressHUD showWithMaskType:SVProgressHUDMaskTypeClear networkIndicator:NO];
[self takeLongTime]
[self.navigationController pushViewController:viewController animated:YES];
}

And the hud is dismissed by the navigationController delegate with
- (void)navigationController:(UINavigationController *)navigationController willShowViewController:(UIViewController *)viewController animated:(BOOL)animated
{
[SVProgressHUD dismiss];
}

However, when do (IBAction)longProcess, the hud doesn't show. A split second before viewController is pushed, I see the hud appear and disappear.