8

when to use CABasicAnimation and CAKeyFrameAnimation and CGAffineTransform?

jscs
  • 62,161
  • 12
  • 145
  • 186
Krishnan
  • 11,487
  • 22
  • 87
  • 152

1 Answers1

11

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

Asad Khan
  • 9,991
  • 12
  • 41
  • 58
Jhaliya - Praveen Sharma
  • 31,294
  • 8
  • 69
  • 74