iOSView.AddControl

From Xojo Documentation

Revision as of 17:50, 20 July 2019 by Gperlman (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Method

iOSView.AddControl(child As iOSControl)

Supported on Mobile(iOS).

Adds a control to the View.

Sample Code

Add a control to the View:

Var ctrl As New iOSSwitch
// Send its ValueChanged event to the SwitchValueChanged method on the View
AddHandler ctrl.ValueChanged, AddressOf SwitchValueChanged
Self.AddControl(ctrl)