iPad 不遵守 Interface Builder 的 AutoLayout 约束

iPad Not Respecting AutoLayout Constraints from Interface Builder

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

这是我的 AutoLayout 约束:

这是问题的截图:

关于为什么会发生这种情况的任何想法?

Trailing 和 Leading space 是 -16.00000,通过取消选中 constraint to margin 选项将其设置为 0...因为它是 -16.000,它从边缘生成 -16 space。 .
你应该像下图那样做...

它根据需要将您的边缘固定到 0