: Designed to a group of pictures, but because it is transparent background, will produce lag, in fact, as long as two pictures can be created a Mbprogresshud classification increase method+ (Mb_instancetype) Myshowhudaddedto: (UIView *) View animated: (BOOL) Animated {if(view = nil) view =[[UIApplication sharedapplication].windows Lastobject]; Mbprogresshud*hud =[Mbprogresshud Showhudaddedto:view animated:animated]; Hud.margin=0; Hud.color=[Uicolor Clearcolor]; UIView*CUSTOMV = [[UIView alloc] Initwithframe:cgrectmake (0,0, the, the)]; Uiimageview*backimage =[[Uiimageview alloc] initWithFrame:customV.bounds]; Backimage.image= [UIImage imagenamed:@"R-shadow"]; [Customv Addsubview:backimage]; Uiimageview* Imgview = [[Uiimageview alloc] Initwithframe:cgrectmake (0,0, the, the)]; [Customv Addsubview:imgview]; Cgpoint PPPP=Imgview.center; PPPP.Y-= -; Imgview.image= [UIImage imagenamed:@"R-ball"]; [UIView beginanimations:@"Movement"Context:nil]; [UIView Setanimationcurve:uiviewanimationcurveeasein]; [UIView setanimationduration:0.5f]; [UIView Setanimationrepeatcount: +]; [UIView Setanimationrepeatautoreverses:yes]; Imgview.center=PPPP; [UIView commitanimations]; Hud.customview=CUSTOMV; Hud.removefromsuperviewonhide= YES;//hide time removed from parent controlHud.mode =Mbprogresshudmodecustomview; returnHUD;}
Mbprogresshud Extended Load Animations