I use MBProgressHUD in my iPhone app. Everything works fine, I display alerts as I want. But there’s an issue : I can’t use the hudWasHidden delegate for one of my alerts. I want to do this because I use a custom segue to load a view from another, but I want to load the view only after the alert hid. I call the alert that way : [alertSentHUD hide:YES afterDelay:2.0]; and I’ve set my class to be a MBProgressHUDDelegate (in the header file). I also put [alertSentHUD setDelegate:self]; in my viewDidLoad, in order to catch the hudWasHidden in question, where I launch my segue as I usually do : [self performSegueWithIdentifier:@"NewAlertToAllThreads" sender:self];.
But it seems like this is never called (I don’t get to the view I want).
Any ideas ? Thanks.
Whenever there is no message / no action as expected. It means that something is nil.
Check whether before calling [alertSentHUD setDelegate:self] whether alertSentHud contains nil or not .
Aso make sure that you set the delegate before you pass a message hide to your MBProgressHUD .
I mean make sure that [alertSentHUD hide:YES afterDelay:2.0] is called after you set the delegate.