Protocol

UIViewControllerTransitionCoordinatorContext

A set of methods that provides information about an in-progress view controller transition.

Declaration

@protocol UIViewControllerTransitionCoordinatorContext

Overview

Do not adopt this protocol in your own classes. UIKit creates an object that adopts this protocol and makes it available to your code when you animate changes using a transition coordinator object.

A transition coordinator context provides most of the same information as an object that adopts the UIViewControllerContextTransitioning protocol. You use this contextual information to determine the animation parameters, such as the view in which the animations take place, whether the transition is interactive, or whether the transition was the result of an interface orientation change. You then apply that information to the animations you create.

Most animations take place in the view returned by the containerView method. And at the time your animation blocks are executed, the view hierarchy already contains the view of the from view controller. You can use your animation blocks to animate additional content in that same container view or you can animate content in an entirely different view.

Topics

Getting the Views and View Controllers

- viewControllerForKey:

Returns the view controllers involved in the transition.

Required.

- viewForKey:

Returns the specified view involved in the transition.

Required.

containerView

Returns the view in which the transition takes place.

Required.

Getting the Behavior Attributes

presentationStyle

Returns the presentation style being used for the transition.

Required.

transitionDuration

Returns the noninteractive duration of a transition.

Required.

completionCurve

Returns the completion curve associated with the transition.

Required.

completionVelocity

Returns the starting velocity to use for any final animations.

Required.

percentComplete

Returns the percentage of completion for an interactive transition when it moves to its noninteractive phase.

Required.

Getting the Transition State

initiallyInteractive

A Boolean value indicating whether the transition started as an interactive transition.

Required.

interactive

A Boolean value indicating whether the transition is currently interactive.

Required.

animated

A Boolean value indicating whether the transition is explicitly animated.

Required.

cancelled

A Boolean value indicating whether an interactive transition was cancelled.

Required.

isInterruptible

A Boolean value indicating whether the transition animations can be interrupted.

Required.

Getting the Rotation Factor

targetTransform

Returns a transform indicating the amount of rotation being applied during the transition.

Required.

Relationships

Inherits From

See Also

Transition Coordinators

UIViewControllerTransitionCoordinator

A set of methods that provides support for animations associated with a view controller transition.