#import <CPViewAnimation.h>
Additional Inherited Members | |
Class Methods inherited from CPObject | |
(BOOL) | + accessInstanceVariablesDirectly |
(id) | + alloc |
(id) | + allocWithCoder: |
(BOOL) | + automaticallyNotifiesObserversForKey: |
(void) | + cancelPreviousPerformRequestsWithTarget: |
(void) | + cancelPreviousPerformRequestsWithTarget:selector:object: |
(Class) | + class |
(BOOL) | + conformsToProtocol: |
(void) | + exposeBinding: |
(void) | + initialize |
(IMP) | + instanceMethodForSelector: |
(BOOL) | + instancesImplementSelector: |
(BOOL) | + instancesRespondToSelector: |
(BOOL) | + isBindingExclusive: |
(BOOL) | + isSubclassOfClass: |
(CPSet) | + keyPathsForValuesAffectingValueForKey: |
(void) | + load |
(id) | + new |
(void) | + object:performSelector:withObject:afterDelay:inModes: |
(void) | + setVersion: |
(Class) | + superclass |
(int) | + version |
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 = CPViewAnimationTargetKey: myViewToAnimate, CPViewAnimationStartFrameKey: aStartFrame, CPViewAnimationEndFrameKey: anEndFrame, CPViewAnimationEffectKey: CPViewAnimationFadeInEffect, };
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 71 of file CPViewAnimation.j.
|
implementation |
Sets the animation's progress.
aProgress | the animation's progress |
Reimplemented from CPAnimation.
Definition at line 105 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 222 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 81 of file CPViewAnimation.j.
|
implementation |
Stops the animation before it has completed.
Reimplemented from CPAnimation.
Definition at line 144 of file CPViewAnimation.j.
|
implementation |
Definition at line 212 of file CPViewAnimation.j.