最佳答案
从 iOS 8 开始,UIView
有一个 layoutMargins
属性,并且根据 docs :
The side margins vary depending on the current size class, but can be either 16 or 20 points (for a view that is UIViewController's root view)
因此,如果您想确保您的 imageView 是“边到边”,请取消选择 Constrain to margins
选项并将四个约束设置为 0
关于ios - 右约束警告,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34202465/