レイヤーがあり、そのサイズを変更したいと思います。しかし、私を悩ませていることがあります。レイヤーで基本的なアニメーションを作成するのと同じように、変換プロパティを変更しています。これは:
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"];
また、基本的なアニメーションに使用できるキーパスを確認できるリストはありますか?