gpt4 book ai didi

ios - 为什么 webview 不适合所有 View ?

转载 作者:行者123 更新时间:2023-11-29 02:24:25 25 4
gpt4 key购买 nike

我在 View Controller 中有一个简单的 WebView ,我希望它覆盖所有 View Controller

所以我添加了 4 个约束:

enter image description here

但这就是结果: enter image description here

正如您所看到的, WebView 没有覆盖所有空间:左侧和右侧都有空白空间......我该如何解决这个问题?

最佳答案

您应该取消选择最近邻间距下的constrains to margin 按钮。

这里有一些关于constrains to margin的解释What is "Constrain to margin" in Storyboard in Xcode 6

“基本上,如果布局边距为 8、8、8、8(默认值),则容器边距前导空间为 0 的约束将具有 8 的 x 位置。请注意,这仅适用于 iOS8 或更高版本。 "

关于ios - 为什么 webview 不适合所有 View ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27722828/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com