Hey,
I am experiencing a weird behavior with my switches.
When I enter the optional value “initialSwitchState = true” to the new switch options then the switch´s position changes - instead of using the “off” position it moves a little bit to the left and this looks really weird especially in my well organized app.
This is the standalone code that causes this behavior, just set the value to “true” or “false”:
local widget = require "widget" local developerModeSwitch = widget.newSwitch ( { top = display.contentHeight/2 - 200, left = display.contentWidth/2, initialSwitchState = false, style = "onOff" } ) local autoUpdateSwitch = widget.newSwitch ( { top = display.contentHeight/2 - 150, left = display.contentWidth/2, initialSwitchState = true, style = "onOff" } )
Max
EDIT: This issue seems to be related to the iOS7 theme. I will fill in a bug report.