iOSSegmentedControl.Add

From Xojo Documentation

Method

iOSSegmentedControl.Add(item As iOSSegmentedControlItem)

Supported on Mobile(iOS).

Adds a segment to the end.

Sample Code

Add segments in the Open event:

Me.Add(New iOSSegmentedControlItem("Earth"))
Me.Add(New iOSSegmentedControlItem("Sun"))
Me.Add(New iOSSegmentedControlItem("Moon"))