Xojo Documentation
Xojo Documentation
Home
Getting Started
Get Started with Xojo
QuickStarts
Tutorials
Pi Programming
More Guides
Resources
In-Depth Guides
User Guide
Language Reference
Resources
Release Notes
System Requirements
Deprecations
Videos
Feedback
About
Usage
Copyrights and Trademarks
Tools
What links here
Related changes
Special pages
Printable version
Permanent link
Page information
iOSView.AddControl
From Xojo Documentation
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)
Category
:
Methods