iphone - Why MBProgressHUD not show, when an alert show before HUD show? -
i use code init mbprogresshud
uiwindow *window = [[uiapplication sharedapplication] keywindow] _hud = [[mbprogresshud alloc]initwithwindow:window]; _hud.dimbackground = bdim; _hud.labeltext = message; [window addsubview:_hud]; [_hud show:yes];
but _hud not show in window ? let me know im lack here?? thanks!
click here! works me .just use window.
uiwindow *keywindow = [[[uiapplication sharedapplication] delegate] window];
or can use
self.navigationcontroller.view
to add hud.
Comments
Post a Comment