Observing animated property changes in a CALayer
问题 I have a CABasicAnimation that animating a property of a CALayer e.g. bounds.origin . I want to be able to observe the property changing over time, but haven't really found a method that works 100%. I tried using KVO (key-value observation) on the presentationLayer 's bounds.origin keypath. The system complains that the object is freed before its observers are freed, leading me to think that the presentation layer is only temporary. Observing presentationLayer.bounds.origin as a keypath doesn