How to hide webView in composer when switching to another scene?
How to hide webView in composer when switching to another scene
Dec 13 2018 04:05 AM
Best Answer Rob Miracle , 13 December 2018 - 11:42 AM
In the scene you're departing from's scene:hide() function set the webView's isVisible to false, or just remove it
function scene:hide( event ) if event.phase == "will" then myWebView.isVisible = false -- or myWebView:removeSelf() myWebView = nil end end
assuming your webView is named "myWebView" and that you declared the webView local at the top of the scene and not inside the function you're creating it in.