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
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
Post a Comment