Instance Method

viewControllerForKey:

Returns the view controllers involved in the transition.

Required.

Declaration

- (__kindof UIViewController *)viewControllerForKey:(UITransitionContextViewControllerKey)key;

Parameters

key

The key indicating which view controller you want. For a list of possible values, see ”View Controller Transition Keys” constants in UIViewControllerContextTransitioning.

Return Value

The view controller associated with the key.

Discussion

The view controller associated with the UITransitionContextFromViewControllerKey key corresponds to the view controller that is already onscreen. The view controller associated with the UITransitionContextToViewControllerKey key corresponds to the view controller that is to be animated onscreen.

See Also

Getting the Views and View Controllers

- viewForKey:

Returns the specified view involved in the transition.

Required.

containerView

Returns the view in which the transition takes place.

Required.