- (IBAction)zzAnimation
{
[super viewDidAppear:YES];
[UIView setAnimationDelegate:self];
[UIView animateWithDuration:1.0
animations:^{
//self.label1.alpha = 0.0;
self.label2.alpha = 1.0;
self.label1.center = CGPointMake(100.0, 43);
}
completion:^(BOOL finished){
[UIView animateWithDuration:1.0
animations:^{
self.label2.center = CGPointMake(300.0, 112.0);
}
completion:^(BOOL finished)
{
[UIView animateWithDuration:1.0
animations:^{
self.label3.center = CGPointMake(300.0, 152.0);
}];
}
];
}];
[UIView commitAnimations];
}
转载于:https://www.cnblogs.com/zzzili/archive/2013/06/09/6685314.html