Instance Property

action

The selector defining the action message to send to the target object when the user taps this bar button item.

Declaration

var action: Selector? { get set }

Discussion

If the value of this property is NULL, no action message is sent. The default value is NULL.

See Also

Getting and Setting Properties

var target: AnyObject?

The object that receives an action when the item is selected.

var style: UIBarButtonItem.Style

The style of the item.

var possibleTitles: Set<String>?

The set of possible titles to display on the bar button.

var width: CGFloat

The width of the item.

var customView: UIView?

A custom view representing the item.