Mbprogresshud Extended Load Animations

Source: Internet
Author: User

: 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.