Watering animation, watering beer

Source: Internet
Author: User

Watering animation, watering beer

 

:

Cut graph:

RootViewController. m

 

-(Void) viewDidLoad {[super viewDidLoad]; // Do any additional setup after loading the view. // initialize the background image [self initBackGroundView];} # pragma-mark-functions // background image-(void) initBackGroundView {// UIImageView * loadPeopleView = [[UIImageView alloc] initWithFrame: CGRectMake (130,100,156,172)]; loadPeopleView. tag = 101; loadPeopleView. alpha = 1.0f; loadPeopleView. backgroundColor = [UIColor clearColor]; [loadPeopleView setImage: [UIImage imageNamed: @ "blank"]; // flowers UIImageView * loadFlowerView = [[UIImageView alloc] initWithFrame: CGRectMake (70,200, 62, 75)]; loadFlowerView. tag= 102; loadFlowerView. alpha = 1.0f; [loadFlowerView setImage: [UIImage imageNamed: @ "problem_load1.png"]; [self. view addSubview: loadPeopleView]; [self. view addSubview: loadFlowerView]; timer = [NSTimer scheduledTimerWithTimeInterval: 0.5 target: self selector: @ selector (animation :) userInfo: nil repeats: YES];} // animation-(void) animation :( NSTimer *) timer {NSLog (@ "-I-% I --", I); UIImageView * imageView = (UIImageView *) [self. view viewWithTag: 102]; I ++; if (I % 3 = 0) {[imageView setImage: [UIImage imageNamed: @ "problem_load1.png"];} else if (I % 3 = 1) {[imageView setImage: [UIImage imageNamed: @ "problem_load2.png"];} else {[imageView setImage: [UIImage imageNamed: @ "problem_load3.png"];}

 


How can I make the effects of watering flowers with flash? Which animation type is suitable?

Please describe in detail what actions you need for watering the flowers! The animation type can be used only when the action is segmented.

Flash address of QQ space watering small MM!

In which space do you see, save the image, upload it to your space album, copy the address, and create a custom module.
 

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.