2. What is
Core Animation?
• Framework for easily creating animated
user interfaces.
• Tightly integrated with UIKit.
• Animate properties over time.
• Layer based.
3. Where is Core
Animation Used?
• Everywhere!
• Navigation controllers, displaying modal
view controllers, deselecting cells in a table
view, flipping to an info screen, etc!
4. UIView
Animation’s
• What you need most of the time.
• Happens within an animation block:
[UIView beginAnimations:nil context:NULL];
// change stuff
[UIView commitAnimations];
5. Customizing,
a little.
• [UIView setAnimationDuration:]
• [UIView setAnimationCurve:]
• UIViewAnimationCurveEaseInOut
UIViewAnimationCurveEaseIn
UIViewAnimationCurveEaseOut
UIViewAnimationCurveLinear
• Delay, repeat count, etc.
11. Custom Animations
• Link against QuartzCore framework.
• Override actionForLayer:forKey: to return
custom animation for property changes.
• Set animation on a layer directly to trigger
an immediate animation.
12. Animation Types
• CABasicAnimation
• Go from point A to point B.
• CAKeyframeAnimation
• Go from A to B to C, etc.
• Animate along a path or by setting values and times
• Set calculation mode to paced, linear, or discrete.
• CAAnimationGroup
• Group multiple animations together.