CAAnimation(FTAnimationAdditions) Category Reference
+Declared in | +FTAnimationManager.h | +
Overview
+This category on CAAnimation
allows for using individual selectors
+on arbitrary objects to respond the CAAnimationDelegate
calls.
Important: You must not set the CAAnimation
delegate
property
+when using a start or stop selector. If you call setStartSelector:withTarget: or
+setStopSelector:withTarget: the CAAnimation
’s delegate
will be overwritten.
Tasks
+ + + + + +-
+
-
+
+
– setStartSelector:withTarget:
+Called right before the animation starts. This has the same effect as +implementing the
+ + + +animationDidStart:
delegate method. -
+
+
– setStopSelector:withTarget:
+Called right before the animation stops. This has the same effect as +implementing the
+ + + +animationDidStop:finished:
delegate method.
+
Instance Methods
+ +setStartSelector:withTarget:
+ + + +Called right before the animation starts. This has the same effect as
+implementing the animationDidStart:
delegate method.
- (void)setStartSelector:(SEL)selector withTarget:(id)target
Parameters
+ +-
+
- selector +
The selector to call on target.
+
-
+
- target +
An object to send the
animationDidStart:
message to.
+
Discussion
+Called right before the animation starts. This has the same effect as
+implementing the animationDidStart:
delegate method.
The selector should accept a single argument of type CAAnimation
.
Declared In
+FTAnimationManager.h
+
setStopSelector:withTarget:
+ + + +Called right before the animation stops. This has the same effect as
+implementing the animationDidStop:finished:
delegate method.
- (void)setStopSelector:(SEL)selector withTarget:(id)target
Parameters
+ +-
+
- selector +
The selector to call on target.
+
-
+
- target +
An object to send the
animationDidStart:finished:
message to.
+
Discussion
+Called right before the animation stops. This has the same effect as
+implementing the animationDidStop:finished:
delegate method.
The selector should accept a two arguments. The first argument is the
+CAAnimation
object sending the message and the second is a BOOL
+indicating whether the animation ran to completion.
Declared In
+FTAnimationManager.h
+