Can you post some code?
Already submitted as Case 41750 with a couple lines of code.
local widget = require "widget" if system.getInfo("targetAppStore") == "apple" then widget.setTheme("widget\_theme\_ios7") else widget.setTheme("widget\_theme\_android") end local function onTouch(event) -- my touch listener end function scene:create( event ) local sceneGroup = self.view switchSound = widget.newSwitch { id = "soundswitch", left = 180, top = display.screenOriginY + 135, initialSwitchState = true, onRelease = onTouch, } end
Notice, when I use “widget_theme_io7”, I get no errors, all display items are visible, except the switch widgets, and the scene is frozen.
When I use “widget_theme_ios”, I get the error above, all display items are visible, except the switch widgets, and the scene is not frozen.
Code works perfectly on the simulator on my PC and my Mac.
Compiled code works perfectly on Android devices.
Compiled code does not work on iOS devices, but did in prior releases.
Thanks,
–John
When you say no errors, just to make sure you are looking at the Xcode devices console?
I was… and no errors, but…
I noticed 2015.2682 was published with this tidbit:
- iOS - Fix missing widget resources issue - fixes casenum 41750
So I installed it and it now works.
thanks,
–john