when to use CABasicAnimation and CAKeyFrameAnimation and CGAffineTransform?
CABasicAnimation : provides basic, single-keyframe animation capabilities for a layer property.
CAKeyFrameAnimation:CAKeyframeAnimation provides generic keyframe animation capabilities for a layer property in the render tree.
CGAffineTransform: The CGAffineTransform data structure represents a matrix used for affine transformations. A transformation specifies how points in one coordinate system map to points in another coordinate system. An affine transformation is a special type of mapping that preserves parallel lines in a path but does not necessarily preserve lengths or angles. Scaling, rotation, and translation are the most commonly used manipulations supported by affine transforms, but skewing is also possible.
For more read Core Animation Programming Guide
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With