Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个UIWebView在我的 ViewController 中占据整个视图的视图,你可以在这里看到:
UIWebView
我不明白的是,当我运行我的应用程序时,我的内容UIWebView并没有填满整个屏幕,你可以在这里看到这个,我首先显示的范围UIWebView(它确实占据了整个屏幕) :
然后在这里,我展示了 的延伸UIWebBrowserView(这似乎与 的顶部有一个间隙UIWebView)。
UIWebBrowserView
有谁知道为什么UIWebBrowserView与顶部有差距UIWebView?
我认为这是因为 UIViewController 的 ScrollView Inset 属性。adjustScrollViewInset默认值为True。
adjustScrollViewInset
True
选择ViewController并转到属性检查器选项卡。取消选中Adjust Scroll View Insets选项。
Adjust Scroll View Insets