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.