UIWebBrowserView does not span entire UIWebView

前端 未结 2 1045
闹比i
闹比i 2021-01-12 14:39

So I have been trying to get this simple behavior working on my iPhone app now for a while. I have a nav bar at the top and a tab bar at the bottom. I am loading all of my c

2条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-12 15:26

    This issue has also resurfaced with iPhone X.

    With iOS 11, UIScrollView now has the property contentInsetAdjustmentBehavior.

    webview.scrollView.contentInsetAdjustmentBehavior = UIScrollViewContentInsetAdjustmentNever;

    can correct this issue.

提交回复
热议问题