1.UIView的简单动画
UIView的首尾式动画
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationDelegate:self];//设置动画完成调用方法
[UIView setAnimationDidStopSelector:@selector(wancheng)];
//需要动画代码
[UIView commitAnimations];
UIView block动画
[UIView animateWithDuration:2.0 animations:^{
label.alpha = 0.0;
} completion:^(BOOL finished) {
label.alpha = 1.0;
}];