Alexis Goldstein of aut faciam. Pace University, October 27, 2010. Slides, and the following source code at github.
main.m
AnimationTalkAppDelegate
creates a
RootViewController
and a
UINavigationController
.RootViewController
is a
controller,
delegate,
and
data
source
for a
table
view.
SampleManager
is a
view
controller.animateWithDuration:animations:
class method of class
UIView
.
SetAlpha
(“Fade In and Out”)
SetCenter
(“Move the View”)
SetTransform
(“Rotate the View”)
NestedAnimations
(“Nested Animations”)
passes animation and completion
blocks
to the
animateWithDuration:delay:options:animations:completion:
class method of class
UIView
.
The completion blocks contain calls to the same method.
transitionWithView:duration:options:animations:completion:
class method of class
UIView
.StickyNote
(“trasitionWithView (CurlUp)”)
passes the option
UIViewAnimationOptionTransitionCurlUp
.
FlipTransition
(“transitionWithView (Flip)”)
passes the option
UIViewAnimationOptionTransitionFlipFromLeft
and a completion
block.
ChangePosition
(“Change Layer Position”)
ShadowPath
(“Add Shadow Path to Layer”)
KeyFrame
(“CAKeyframeAnimation (values)”)
adds
a sublayer to the view’s layer,
and then
adds
a
CAKeyframeAnimation
object to the sublayer.BasicAnimation
(“CABasicAnimation (opacity)”)
adds
a
CABasicAnimation
object to the view’s layer.