Initializer

init()

Initializes the bar button item to its default state.

Declaration

init()

Return Value

An initialized bar button item or nil if the item could not be initialized.

See Also

Initializing an Item

init(barButtonSystemItem: UIBarButtonItem.SystemItem, target: Any?, action: Selector?)

Initializes a new item containing the specified system item.

init(customView: UIView)

Initializes a new item using the specified custom view.

init(image: UIImage?, style: UIBarButtonItem.Style, target: Any?, action: Selector?)

Initializes a new item using the specified image and other properties.

init(title: String?, style: UIBarButtonItem.Style, target: Any?, action: Selector?)

Initializes a new item using the specified title and other properties.