Type Method

setAnimationBeginsFromCurrentState:

Sets whether the animation should begin playing from the current state.

Declaration

+ (void)setAnimationBeginsFromCurrentState:(BOOL)fromCurrentState;

Parameters

fromCurrentState

Specify YES if animations should begin from their currently visible state; otherwise, NO.

Discussion

If set to YES when an animation is in flight, the current view position of the in-flight animation is used as the starting state for the new animation. If set to NO, the in-flight animation ends before the new animation begins using the last view position as the starting state. This method does nothing if an animation is not in flight or invoked outside of an animation block. Use the beginAnimations:context: class method to start and the commitAnimations class method to end an animation block. The default value is NO.

Use of this method is discouraged in iOS 4.0 and later. Instead, you should use theanimateWithDuration:delay:options:animations:completion: method to specify your animations and the animation options.

See Also

Animating Views

+ beginAnimations:context:

Marks the beginning of a begin/commit animation block.

Deprecated
+ commitAnimations

Marks the end of a begin/commit animation block and schedules the animations for execution.

Deprecated
+ setAnimationStartDate:

Sets the start time for the current animation block.

Deprecated
+ setAnimationsEnabled:

Sets whether animations are enabled.

+ setAnimationDelegate:

Sets the delegate for any animation messages.

Deprecated
+ setAnimationWillStartSelector:

Sets the message to send to the animation delegate when the animation starts.

Deprecated
+ setAnimationDidStopSelector:

Sets the message to send to the animation delegate when animation stops.

Deprecated
+ setAnimationDuration:

Sets the duration (measured in seconds) of the animations in an animation block.

Deprecated
+ setAnimationDelay:

Sets the amount of time (in seconds) to wait before animating property changes within an animation block.

Deprecated
+ setAnimationCurve:

Sets the curve to use when animating property changes within an animation block.

Deprecated
+ setAnimationRepeatCount:

Sets the number of times animations within an animation block repeat.

Deprecated
+ setAnimationRepeatAutoreverses:

Sets whether the animations within an animation block automatically reverse themselves.

Deprecated
+ setAnimationTransition:forView:cache:

Sets a transition to apply to a view during an animation block.

Deprecated
areAnimationsEnabled

Returns a Boolean value indicating whether animations are enabled.