The first step, the controller first to the properties
@property (Strong, nonatomic) Mbprogresshud *hud;
Second step, show and hide the Calling method
- (void) Hudtipwillshow: (BOOL) willshow{if(willshow) {[Self resignfirstresponder]; UIWindow*keywindow =[UIApplication Sharedapplication].keywindow; if(!_hud) {_hud=[Mbprogresshud Showhudaddedto:keywindow Animated:yes]; _hud.mode=Mbprogresshudmodedeterminatehorizontalbar; _hud.labeltext=@"Uploading pictures ..."; _hud.removefromsuperviewonhide=YES; }Else{_hud.progress=0; [Keywindow Addsubview:_hud]; [_hud Show:yes]; } }Else{[_hud hide:yes]; }}
The third step, before uploading, let it show
[Self hudtipwillshow:yes];
Fourth step, Last crossing, progress tips
if (self.) HUD) { = progress; Progress is the callback progress }
Fifth step, upload complete, let it hide
[Self hudtipwillshow:no];
Mbprogresshud Upload Photo Progress Tips