UIBarButtonItem.Target Property

Definition

The object that will receive the selector specified in the Action property.

public virtual Foundation.NSObject Target { [Foundation.Export("target", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] get; [Foundation.Export("setTarget:", ObjCRuntime.ArgumentSemantic.UnsafeUnretained)] set; }
member this.Target : Foundation.NSObject with get, set

Property Value

This value can be null.

Attributes

Remarks

The target will receive the message containing the selector from the Action property. This allows the target object to implement a method to handle the selector. This is basically another way of handling the UIButtonItem being pressed.

Applies to