Hi,
I have a rather dumb question about radiobutton in widget.newSwitch.
I say “dumb” because it is a really elementary and rudimentary question.
So I want to store the particular button the user chose, so that later, when the user returns to the scene, the button the user last chose will be selected. Simple enough right?
Here is the documentation for radio button:
https://docs.coronalabs.com/api/library/widget/newSwitch.html
According to the documentation, I have available the method Object:setState( )
However, when I do something like
myRadioButton:setState{isOn = true}
nothing happens!
Oddly enough, when I do the same thing to an onOff button, such as
myOnOffButton:setState{isOn = true}
it works!!
Am I missing something here? Clearly, I am missing something very obvious??
Thanks in advance!
KC