为什么全屏时距离侧面距离的自动约束必须为负数?

Why do Auto Constraints for distance from the sides have to be negative for fullscreen?

为什么 UIImageViewUIViewController 的边对齐时,我的边距自动约束必须为负值。在下面的屏幕截图中,请注意右侧(对齐)为 -20,左侧为 -14,UIImageViewUIViewController 的边缘之间有一些空白 space .

这里为什么需要负数?

取消选中 "Constrain to margins",您将在那里获得正值。