Instance Method

addCompletion:

Adds the specified completion block to the animator.

Declaration

- (void)addCompletion:(void (^)(UIViewAnimatingPosition finalPosition))completion;

Parameters

completion

A block to execute when the animations finish. This block has no return value and takes the following parameter:

finalPosition

The position where the animations stopped. Use this value to specify whether the animations stopped at their starting point, their end point, or their current position.

Discussion

Use this method to add the completion blocks to your custom animator object. Completion blocks should execute after the animations finish successfully. If the stopAnimation: method is called, do not execute any completion blocks if the withoutFinishing parameter for that method contains the value YES. If the parameter is NO and the client subsequent calls the finishAnimationAtPosition: method, execute the completion blocks in your implementation of that method. Your implementation must be able to handle multiple calls to this method.

See Also

Modifying Animations

- addAnimations:

Adds the specified animation block to the animator.

- addAnimations:delayFactor:

Adds the specified animation block to the animator with a delay.

- continueAnimationWithTimingParameters:durationFactor:

Adjusts the final timing and duration of a paused animation.