Hello!
I’m having problems using the native.newTextField() widget with the tab bars. In my scene - screen2.lua, I create the widget in the scene:enterScene(event) function and on scene:exitScene(), I remove the widget. This works great when I leave the tab and go to a different tab. However, if I tap on the same tab of screen2.lua, the widget does not reload!
If newTextField() widget exists in screen2.lua, how do I get this widget to ‘stay’ when I reload screen2.lua? I hope this make sense…
Below isn’t the full code, but it’s what I’m essentially doing in screen2.lua.
[code]
function scene:enterScene( event )
userinput = native.newTextField(0,0,75,30)
end
scene:addEventListener( “enterScene”, scene)
function scene:exitScene( event )
local group = self.view
display.remove(userinput)
end
scene:addEventListener( “exitScene”, scene )
[/code] [import]uid: 221388 topic_id: 35542 reply_id: 335542[/import]