Instance Property


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


weak var target: AnyObject? { get set }


If nil, the action message is passed up the responder chain where it may be handled by any object implementing a method corresponding to the selector held by the action property. The default value is nil.

See Also

Getting and Setting Properties

var action: Selector?

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

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.