MMMNavigationStackItemDelegate

Objective-C

@protocol MMMNavigationStackItemDelegate <NSObject>

Swift

protocol MMMNavigationStackItemDelegate : NSObjectProtocol

This is the delegate corresponding to each navigation item in the stack. Its main purpose is to be able to handle popping of the corresponding navigation item.

  • Should perform all the work necessary to pop the corresponding UI navigation item and must call didPop method on the corresponding item when done.

    Note that when the delegate is asked to pop, then all the items on top of it in the stack have been popped already, so the delegate should not ask the stack to do it. In fact asking for it and waiting for completion might freeze the popping process as pop completion callbacks are called only after all the whole popping process completes.

    Declaration

    Objective-C

    - (void)popNavigationStackItem:(nonnull id<MMMNavigationStackItem>)item;

    Swift

    func pop(_ item: any MMMNavigationStackItem)