Skip to content

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
MBProgressHUD static
static MBProgressHUD *__hud = nil;
+ (MBProgressHUD *)showGlobalProgressHUDWithTitle:(NSString *)title {
UIWindow *window = [[[UIApplication sharedApplication] windows] lastObject];
if (!__hud) {
__hud = [[MBProgressHUD alloc] initWithView:window];
}
__hud.labelText = title;
[window addSubview:__hud];
[__hud show:animated];
return hud;
}
+ (void)dismissGlobalHUD {
hud.removeFromSuperViewOnHide = YES;
[hud hide:animated];
[MBProgressHUD hideHUDForView:window animated:YES];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.