Is there a way to make MBProgressHUD show at the bottom or top of the screen?
I tried to set the frame using [hud setFrame:....]; , initWithFrame and set the center hud property. None of this worked. After checking these methods, I did NSLog (). The values have changed, but the hud was still displayed in the center of the screen.
It should be noted that hud is displayed using UIWindow:
UIWindow *window = [[[UIApplication sharedApplication] windows] lastObject]; MBProgressHUD *hud = [MBProgressHUD showHUDAddedTo:window animated:YES]; hud.mode = MBProgressHUDModeText; hud.labelText = @"some text";
This is because the hash is displayed by the background execution unit, so hud can be displayed in any view currently being displayed.
ios mbprogresshud
kRiZ
source share