1 //移动旋转动画效果 2 CATransform3D rotate = CATransform3DMakeRotation(70.0 * M_PI / 180.0, 0.0, 0.0, 1.0); 3 CATransform3D translate = CATransform3DMakeTranslation(20.0, -500.0, 0.0); 4 self.layer.transform = CATransform3DConcat(rotate, translate);
//执行动画
5 [UIViewanimateWithDuration:0.3delay:0.0options:UIViewAnimationCurveEaseOutanimations:^{
6 self.layer.transform = CATransform3DIdentity;
7 } completion:^(BOOL finished) {
8 if (completion)
9 completion();
10 }];
//缩放动画
1 view.transform = CGAffineTransformMakeScale(0, 0);
2
3 [UIView animateWithDuration:0.2 delay:0.0 options:UIViewAnimationOptionCurveLinear animations:^{
4
5 view.transform = CGAffineTransformMakeScale(1, 1);
6
7 } completion:^(BOOL finished) {
8
9 10 }];