UINavigationItem$Methods extension

on

Properties

backBarButtonItem UIBarButtonItem?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

Bar button item to use for the back button when this item is the navigation bar's backItem.
getter/setter pair
backButtonDisplayMode UINavigationItemBackButtonDisplayMode

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

Controls how the back button sources its title.
getter/setter pair
backButtonTitle ↔ NSString?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

Title to use when this item is the navigation bar's backItem. Default is nil. backBarButtonItem takes precedence if both are specified.
getter/setter pair
compactAppearance UINavigationBarAppearance?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

When set and this item is topmost, overrides the hosting navigation bar's compactAppearance. See UINavigationBar.compactAppearance for further details.
getter/setter pair
compactScrollEdgeAppearance UINavigationBarAppearance?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

When set and this item is topmost, overrides the hosting navigation bar's compactScrollEdgeAppearance. See UINavigationBar.h for further details.
getter/setter pair
hidesBackButton bool

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

If YES, this navigation item will hide the back button when it's on top of the stack.
getter/setter pair
hidesSearchBarWhenScrolling bool

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

If this property is true (the default), the searchController’s search bar will hide as the user scrolls in the top view controller’s scroll view. If false, the search bar will remain visible and pinned underneath the navigation bar.
getter/setter pair
largeTitleDisplayMode UINavigationItemLargeTitleDisplayMode

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

When UINavigationBar.prefersLargeTitles=YES, this property controls when the larger out-of-line title is displayed. If prefersLargeTitles=NO, this property has no effect. The default value is Automatic.
getter/setter pair
leftBarButtonItem UIBarButtonItem?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

Some navigation items want to display a custom left or right item when they're on top of the stack. A custom left item replaces the regular back button unless you set leftItemsSupplementBackButton to YES
getter/setter pair
leftBarButtonItems ↔ NSArray?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

leftBarButtonItems
getter/setter pair
leftItemsSupplementBackButton bool

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

leftItemsSupplementBackButton
getter/setter pair
prompt ↔ NSString?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

Explanatory text to display above the navigation bar buttons.
getter/setter pair
rightBarButtonItem UIBarButtonItem?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

rightBarButtonItem
getter/setter pair
rightBarButtonItems ↔ NSArray?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

rightBarButtonItems
getter/setter pair
scrollEdgeAppearance UINavigationBarAppearance?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

When set and this item is topmost, overrides the hosting navigation bar's scrollEdgeAppearance. See UINavigationBar.scrollEdgeAppearance for further details.
getter/setter pair
searchController UISearchController?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

A view controller that will be shown inside of a navigation controller can assign a UISearchController to this property to display the search controller’s search bar in its containing navigation controller’s navigation bar.
getter/setter pair
standardAppearance UINavigationBarAppearance?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

When set and this item is topmost, overrides the hosting navigation bar's standardAppearance. See UINavigationBar.standardAppearance for further details.
getter/setter pair
title ↔ NSString?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

Title when topmost on the stack. default is nil
getter/setter pair
titleView UIView?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

Custom view to use in lieu of a title. May be sized horizontally. Only used when item is topmost on the stack.
getter/setter pair

Methods

encodeWithCoder(NSCoder coder) → void

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

encodeWithCoder:
init() UINavigationItem

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

init
initWithCoder(NSCoder coder) UINavigationItem?

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

initWithCoder:
initWithTitle(NSString title) UINavigationItem

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

initWithTitle:
setHidesBackButton(bool hidesBackButton, {required bool animated}) → void

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

setHidesBackButton:animated:
setLeftBarButtonItem(UIBarButtonItem? item, {required bool animated}) → void

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

setLeftBarButtonItem:animated:
setLeftBarButtonItems(NSArray? items, {required bool animated}) → void

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

setLeftBarButtonItems:animated:
setRightBarButtonItem(UIBarButtonItem? item, {required bool animated}) → void

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

setRightBarButtonItem:animated:
setRightBarButtonItems(NSArray? items, {required bool animated}) → void

Available on UINavigationItem, provided by the UINavigationItem$Methods extension

setRightBarButtonItems:animated: