iOSSegmentedControl.Add

From Xojo Documentation

You are currently browsing the old Xojo documentation site. Please visit the new Xojo documentation site!
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"))