iOS Developer Library

Developer

UIKit Framework Reference UINavigationControllerDelegate Protocol Reference

Options
Deployment Target:

On This Page
Language:

UINavigationControllerDelegate

Use a navigation controller delegate (a custom object that implements this protocol) to modify behavior when a view controller is pushed or popped from the navigation stack of a UINavigationController object. More...

Inheritance


Not Applicable

Import Statement


import UIKit @import UIKit;

Availability


Available in iOS 2.0 and later.
  • These constants define the type of navigation controller transitions that can occur.

    Declaration

    Swift

    enum UINavigationControllerOperation : Int { case None case Push case Pop }

    Objective-C

    typedef enum { UINavigationControllerOperationNone, UINavigationControllerOperationPush, UINavigationControllerOperationPop } UINavigationControllerOperation;

    Constants

    • None

      UINavigationControllerOperationNone

      No operation is taking place.

      Available in iOS 7.0 and later.

    • Push

      UINavigationControllerOperationPush

      A view controller is being pushed onto the navigation stack.

      Available in iOS 7.0 and later.

    • Pop

      UINavigationControllerOperationPop

      The topmost view controller is being removed from the navigation stack.

      Available in iOS 7.0 and later.

    Import Statement

    import UIKit

    Availability

    Available in iOS 7.0 and later.