iOS7 Webview initial scroll position under Navigation bar

后端 未结 8 2628
[愿得一人]
[愿得一人] 2021-02-18 22:50

I have a webview which is scrolling as desired underneath a navigation bar.

However, when I first load the controller, the page loaded in the webview is scrolled so that

8条回答
  •  忘掉有多难
    2021-02-18 23:19

    I had the same issue and fixed it. The solution is pretty simple:

    Go to the storyboard, select the view controller which contains your UIWebView and open the Attributes Inspector. Here, you'll see the title "Extend Edges", just uncheck the box "Under Top Bars" and I will work !

    Hope this helps !

提交回复
热议问题