UISwitch.On UISwitch.On Property

Definition

This property returns if the state of the switch is on or off.

[get: Foundation.Export("isOn")]
[set: Foundation.Export("setOn:")]
public virtual bool On { get; set; }
member this.On : bool with get, set

Property Value

Remarks

Setting the property changes the state of the switch without an animation.

Applies to