popItem(animated:)
Pops the top item from the navigation bar’s stack and updates the UI.
Declaration
func popItem(animated: Bool) -> UINavigationItem?Parameters
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.