Contents

popItem(animated:)

Pops the top item from the navigation bar’s stack and updates the UI.

Declaration

func popItem(animated: Bool) -> UINavigationItem?

Parameters

  • animated:

    True if the navigation bar should be animated; otherwise, False.

Return Value

The top item that was popped.

Discussion

Popping a navigation item removes the top item from the stack and replaces it with the back item. The back item’s title is centered on the navigation bar and its other properties are displayed.

See Also

Pushing and popping items