How can I know the values in CABasicAnimation keyPath
问题 I find some code like this: CABasicAnimation *anim = [CABasicAnimation animation]; anim.keyPath = @"transform.scale"; anim.fromValue = [NSNumber numberWithFloat:1.0]; anim.toValue = [NSNumber numberWithFloat:0]; anim.removedOnCompletion = NO; anim.fillMode = kCAFillModeBoth; anim.delegate = self; [self.view.layer addAnimation:anim forKey:@"scaleOut"]; and anim.keyPath = @"transform.rotation.x"; As far as I know, keyPath is a chained method invoke. "transform.scale" for CALayer is aLayer