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 nil, no action message is sent. The default value is nil.