Hi
I’m using function Scene.
I made the function scene:destroyScene( event )
-- If scene's view is removed, scene:destroyScene() will be called just prior to:
function scene:destroyScene( event )
local group = self.view
group:removeSelf()
if playBtnCheck then
playBtnCheck:removeSelf() -- widgets must be manually removed
playBtnCheck = nil
end
if playBtn then
playBtn:removeSelf() -- widgets must be manually removed
playBtn = nil
end
if numberHelpOne then
numberHelpOne:removeSelf() -- widgets must be manually removed
numberHelpOne = nil
end
end
But I can not delete this objcet
numberHelpOne = native.newTextField( 55, 122, 200, 36, fieldHandler( function() return numberHelpOne end ) )
How I can do this?
[import]uid: 100428 topic_id: 28192 reply_id: 328192[/import]