Type Method

set​Animation​Start(_:​)

Sets the start time for the current animation block.

Declaration

class func setAnimationStart(_ startDate: Date)

Parameters

start​Time

The time to begin the animations.

Discussion

Call this method between the begin​Animations(_:​context:​) and commit​Animations() methods to specify the start time for that set of animations. And call this method prior to changing the animatable properties of your views. (Do not call this method in conjunction with a block-based animation.) If you do not call this method, the start time is set to the value returned by the CFAbsolute​Time​Get​Current() function, which begins the animations as soon as possible.

Use of this method is discouraged in iOS 4.0 and later. You should use the block-based animation methods to specify your animations instead.

See Also

Related Symbols

class func set​Animation​Duration(Time​Interval)

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

class func set​Animation​Delay(Time​Interval)

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

class func commit​Animations()

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

class func set​Animation​Repeat​Autoreverses(Bool)

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

class func set​Animation​Repeat​Count(Float)

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

class func set​Animation​Curve(UIView​Animation​Curve)

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

class func set​Animation​Begins​From​Current​State(Bool)

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