![]() |
API
0.9.6
|
#import <CPViewAnimation.h>
Additional Inherited Members | |
![]() | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(Class) | + class |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
![]() | |
Class | isa |
CPViewAnimation is a subclass of CPAnimation that makes it easy to do basic animations on views.
Definition at line 2 of file CPViewAnimation.h.
|
implementation |
Designated initializer.
This method takes an array of CPDictionaries. Each dictionary should contain values for the following keys:
CPViewAnimationTargetKey - (Required) The view to animate. CPViewAnimationStartFrameKey - (Optional) The start frame of the target. CPViewAnimationEndFrameKey - (Optional) The end frame of the target. CPViewAnimationEffectKey - (Optional) a fade effect to use for the animation.
For example:
var animation = [CPDictionary dictionaryWithObjects:[myViewToAnimate, aStartFrame, anEndFrame, CPViewAnimationFadeInEffect] forKeys:[CPViewAnimationTargetKey, CPViewAnimationStartFrameKey, CPViewAnimationEndFrameKey, CPViewAnimationEffectKey]];
If you pass nil instead of an array of dictionaries you should later call setViewAnimations:.
viewAnimations | - An array of CPDictionaries for each animation. |
Definition at line 68 of file CPViewAnimation.j.
|
implementation |
Definition at line 102 of file CPViewAnimation.j.
|
implementation |
Takes an array of CPDictionaries as documented in initWithViewAnimations:.
viewAnimations | - An array of dictionaries describing the animation. |
Definition at line 219 of file CPViewAnimation.j.
|
implementation |
Starts the animation. The method calls -animationShouldStart
: on the delegate (if it implements it) to see if the animation should begin.
Reimplemented from CPAnimation.
Definition at line 78 of file CPViewAnimation.j.
|
implementation |
Stops the animation before it has completed.
Reimplemented from CPAnimation.
Definition at line 141 of file CPViewAnimation.j.
|
implementation |
Definition at line 209 of file CPViewAnimation.j.