I want to set default value to segmented control after construct.
But segmentedControl.defaultSegment do not worked.
local segmentedControl = widget.newSegmentedControl { left = 50, top = 150, segments = { "Hello", "Corona", "SDK!" }, defaultSegment = 1, onPress = onPress, } segmentedControl.defaultSegment = 2 --- \<\<\< NOT WORK
I read docs, but I can not find how to do.
Is there API ?