Instance Method

navigationController:interactionControllerForAnimationController:

Called to allow the delegate to return an interactive animator object for use during view controller transitions.

Declaration

- (id<UIViewControllerInteractiveTransitioning>)navigationController:(UINavigationController *)navigationController interactionControllerForAnimationController:(id<UIViewControllerAnimatedTransitioning>)animationController;

Parameters

navigationController

The navigation controller whose navigation stack is changing.

animationController

The noninteractive animator object provided by the delegate’s navigationController:animationControllerForOperation:fromViewController:toViewController: method.

Return Value

The animator object responsible for managing the transition animations, or nil if you want to use the standard navigation controller transitions. The object you return must conform to the UIViewControllerInteractiveTransitioning protocol.

Discussion

Implement this delegate method when you want to provide a custom, interactive transition between view controllers as they are added to or removed from the navigation stack. The object you return should configure the interactivity aspects of the transition and should work with the object in the animationController parameter to start the animations.

See Also

Supporting Custom Transition Animations

- navigationController:animationControllerForOperation:fromViewController:toViewController:

Called to allow the delegate to return a noninteractive animator object for use during view controller transitions.

- navigationControllerPreferredInterfaceOrientationForPresentation:

Returns the preferred orientation for presentation of the navigation controller, as determined by the delegate.

- navigationControllerSupportedInterfaceOrientations:

Returns the complete set of supported interface orientations for the navigation controller, as determined by the delegate.