CATransform3DMakeScale和CATransform3DRotate
1 CATransform3DMakeRotation(CGFloat angle, CGFloat x, CGFloat y, CGFloat z); // 旋转
2
3 CATransform3DMakeScale(CGFloat sx, CGFloat sy, CGFloat sz); // 缩放
1 CATransform3D transform = CATransform3DMakeScale(0.50, 0.50, 1.0);
2
3 [pulseAnimation setToValue:[NSValue valueWithCATransform3D:CATransform3DIdentity]];
4
5 [pulseAnimation setToValue:[NSValue valueWithCATransform3D:transform]];