Sets whether the animation should begin playing from the current state.
- iOS 2.0–13.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
trueif animations should begin from their currently visible state; otherwise,
If set to
true 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
false, 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
begin class method to start and the
commit class method to end an animation block. The default value is
Use of this method is discouraged in iOS 4.0 and later. Instead, you should use the
animate(with method to specify your animations and the animation options.