右约束警告
Warning for right constraints
我执行以下操作:
然后它显示这个:
我哪里做错了?
从 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 变为 "edge to edge",请取消选择 Constrain to margins
选项并将四个约束设置为 0
我执行以下操作:
然后它显示这个:
我哪里做错了?
从 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 变为 "edge to edge",请取消选择 Constrain to margins
选项并将四个约束设置为 0