Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

I GET white screen whit webview when removescene
Started by app75080 Apr 11 2019 08:09 PM

1 reply to this topic
[TOPIC CONTROLS]
This topic is locked This topic is locked
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

app75080

[GLOBAL: userInfoPane.html]
app75080
  • Observer

  • 3 posts
  • Corona SDK

i need help. i get white screen.

function scene:show( event )
    local sceneGroup = self.view
if event.phase == "will" then
webView = native.newWebView( display.contentCenterX, display.contentCenterY + 20, display.actualContentWidth, display.actualContentHeight * 0.95 )
webView:request("http://******.com" )
    end
end

function scene:hide( event )
    local sceneGroup = self.view
if event.phase == "will" then
if webView and webView.removeSelf then
webView:removeSelf()
webView = nil
end
end
end
 
 

 



[TOPIC: post.html]
#2

Rob Miracle

[GLOBAL: userInfoPane.html]
Rob Miracle
  • Moderator

  • 25,801 posts
  • Enterprise

Please only use one thread for your question:

 

https://forums.coronalabs.com/topic/75332-webview-problem/

 

Rob




[topic_controls]
[/topic_controls]