iOSSwitch.Enabled

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!

Property (As Boolean )
aiOSSwitch.Enabled = newBooleanValue
or
BooleanValue = aiOSSwitch.Enabled

Supported on Mobile (iOS).

Enables or disables the switch.

Sample Code

Disable a Switch:

MySwitch.Enabled = False