Hi all,
have found some strange behaviour in my use of the widget.newSwitch switch when the device’s orientation is changed while viewing the switch… the scene is redrawn in the new orientation, as expected, but the displayed switch values for all of the displayed switches have inverted themselves (that is, every switch that was off is now on, and vice versa).
The change, from off to on for example, doesn’t seem to trigger the switch’s listeners, and doesn’t go away on subsequent orientation changes (i.e. the inverted values remain, irrespective of subsequent orientation changes… they do not change every time the orientation changes… this only happens on the FIRST orientation change).
Happens on both the simulator and the device (iphone6).
This “bug-like effect” only occurs if the orientation change (such as from landscape to portrait) is made WHILE the switch is being viewed… it does not occur if the orientation change occurs while looking at something else (that is, it appears to be the fact that the change occurs WHILE the switch is being viewed, rather than the fact of the devices orientation when the switch is created).
Has anyone else observed this effect? Any suggestions to prevent it?