Hi there,
I have an app that works perfectly in the simulator, but when loaded to a device (Android or iOS) the default splash page shows for approximately 1 second, then disappears, showing a black screen. When the default screen is removed, the app just shows a black screen indefinitely. My main.lua file looks like this:
[lua]storyboard = require(“storyboard”)
–declarations of constants, etc.
storyboard.gotoScene(“scripts.firstscene”)[/lua]
then my first scene looks like this:
[lua]local scene = storyboard.newScene()
function scene:createScene(event)
local firstSceneGroup = self.view
--some declarations including “firstSceneGroup:insert(stuff…)”
end
function scene:enterScene(event)
--some declarations
end
function scene:exitScene(event)
--some declarations
end
function scene:destroyScene(event)
end
scene:addEventListener(“createScene”, scene)
scene:addEventListener(“enterScene”, scene)
scene:addEventListener(“exitScene”, scene)
scene:addEventListener(“destroyScene”, scene)
return scene[/lua]
Any idea what’s happening?