init(barButtonSystemItem:target:action:)
Creates an item using the specified system item, target, and action.
Declaration
convenience init(barButtonSystemItem systemItem: UIBarButtonItem.SystemItem, target: Any?, action: Selector?)Parameters
- systemItem:
The system item to use as the first item on the bar. For possible values, see Systemitem.
- target:
The object that receives the
actionmessage. - action:
The action to send to
targetwhen a person selects this item.
Return Value
A newly initialized UIBarButtonItem.