Inherits from NSObject
Declared in POPAnimation.h

Overview

Instantiate and use one of the concrete animation subclasses.

Tasks

Properties

autoreverses

@property (assign, nonatomic) BOOL autoreverses
Discussion

An animation that autoreverses will have twice the duration before it is considered finished. It will animate to the toValue, stop, then animate back to the original fromValue. The delegate methods are called as follows:

 1) animationDidStart: is called at the beginning, as usual, and then after each toValue is reached and the autoreverse is going to start.
 2) animationDidReachToValue: is called every time the toValue is reached. The toValue is swapped with the fromValue at the end of each animation segment. This means that with autoreverses set to YES, the animationDidReachToValue: delegate method will be called a minimum of twice.
 3) animationDidStop:finished: is called every time the toValue is reached, the finished argument will be NO if the autoreverse is not yet complete.

Declared In

POPAnimation.h

beginTime

@property (assign, nonatomic) CFTimeInterval beginTime
Discussion

Defaults to 0 and starts immediately.

Declared In

POPAnimation.h

completionBlock

Optional block called on animation completion.

@property (copy, nonatomic) void ( ^ ) ( POPAnimation *anim , BOOL finished ) completionBlock

Declared In

POPAnimation.h

delegate

@property (weak, nonatomic) id delegate
Discussion

See {@ref POPAnimationDelegate} for details.

Declared In

POPAnimation.h

name

@property (copy, nonatomic) NSString *name
Discussion

Optional property to help identify the animation.

Declared In

POPAnimation.h

paused

@property (assign, nonatomic, getter=isPaused) BOOL paused
Discussion

A paused animation is excluded from the list of active animations. On initial creation, defaults to YES. On animation addition, the animation is implicity unpaused. On animation completion, the animation is implicity paused including for animations with removedOnCompletion set to NO.

Declared In

POPAnimation.h

removedOnCompletion

@property (assign, nonatomic) BOOL removedOnCompletion
Discussion

Setting to NO can facilitate animation reuse. Defaults to YES.

Declared In

POPAnimation.h

repeatCount

@property (assign, nonatomic) NSInteger repeatCount
Discussion

A repeatCount of 0 or 1 means that the animation will not repeat, just like Core Animation. A repeatCount of 2 or greater means that the animation will run that many times before stopping. The delegate methods are called as follows:

 1) animationDidStart: is called at the beginning of each animation repeat.
 2) animationDidReachToValue: is called every time the toValue is reached.
 3) animationDidStop:finished: is called every time the toValue is reached, the finished argument will be NO if the autoreverse is not yet complete.

When combined with the autoreverses property, a singular animation is effectively twice as long.

Declared In

POPAnimation.h

repeatForever

@property (assign, nonatomic) BOOL repeatForever
Discussion

This property will make the animation repeat forever. The value of the repeatCount property is undefined when this property is set. The finished parameter of the delegate callback animationDidStop:finished: will always be NO.

Declared In

POPAnimation.h

tracer

@property (readonly, nonatomic) POPAnimationTracer *tracer
Discussion

Returns the existing tracer, creating one if needed. Call start/stop on the tracer to toggle event collection.

Declared In

POPAnimation.h