How to hide webView in composer when switching to another scene?
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.
Rob
Thank You!
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.
Rob
Thank You!