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

Popular posts from this blog

html5 - What is breaking my page when printing? -

html - Unable to style the color of bullets in a list -

c# - must be a non-abstract type with a public parameterless constructor in redis -