0
我有一层,我想修改它的大小。但是有些东西让我感到困惑。正在修改其transform属性,与在图层上制作基本动画相同。是这样的:iPhone关键路径的图层动画?
layer.transform = CATransform3DMakeScale(0.5, 0.5, 1);
一样:
CABasicAnimation *scale = [CABasicAnimation animationWithKeyPath: @"transform.scale"];
scale.fromValue = [NSNumber numberWithDouble:startScale];
scale.toValue = [NSNumber numberWithDouble:endScale];
[layer addAnimation:scale forKey:@"animateScale"];
另外,有一些名单,我可以看到什么keypaths可用于基本的动画?