ios - webview overlaps with status bar only on first load -


the status bar overlaps top of webview, how looks in this post. situation different his, because overlap present @ first load of webivew, before of these things happen:

things make webview spaced properly:

  • i switch away tab of webview, , switch back
  • i press of js buttons on page
  • i rotate device

example vid of 1 , 2 on list

in video, starts showing wikipedia improperly spaced, once press sidebar button, fixes spacing. scroll stackoverflow.com, improperly spaced, when scroll away , come fixes itself.

i have of webviews constrained webview.top = top layout guide.bottom

it happens classes simple this:

class testweb: uiviewcontroller { @iboutlet weak var webview: uiwebview!  override func viewdidload() {          let url = nsurl (string: "https://stackoverflow.com")          let requestobj = nsurlrequest(url: url!)          webview.loadrequest(requestobj)     } } 

it happened before added animation. happens in simulator, on real device, , both ios9/ios8

any ideas?


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -