gpt4 book ai didi

ios - iPad 不遵守 Interface Builder 的 AutoLayout 约束

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

我在我的 iOS 应用程序中使用 AutoLayout。在 iPhone 上,UITableView 延伸到屏幕的两个边缘;然而,在 iPad 上,它会在距边缘几像素处停止。

这是我的 AutoLayout 约束:

constraints

问题截图如下: background issue

关于为什么会发生这种情况有什么想法吗?

最佳答案

尾随和前导空间为 -16.00000,通过取消选中 constraint to margin 选项将其设置为 0...因为它是 -16.000,它使边缘距离为 -16...
你应该像下图那样做......

enter image description here

它按照你的意愿将你的边缘固定到 0

关于ios - iPad 不遵守 Interface Builder 的 AutoLayout 约束,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31095498/

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