Bewerken

Delen via


UIBarButtonItem.Action Property

Definition

The action sent to the object specified as the target.

public virtual ObjCRuntime.Selector Action { [Foundation.Export("action")] get; [Foundation.Export("setAction:")] set; }
member this.Action : ObjCRuntime.Selector with get, set

Property Value

This value can be null.

Attributes

Remarks

A target and action are an Objective-C mechanism for allowing a method in some object, the target, to be called for some action. Objective-C uses message sending, where the message includes a selector that equates to the name of the method to call. This is basically another way of handling the button being pressed.

Applies to