Autolayouts 在 iPhone 6s Plus 中无法正常工作

Autolayouts not working as expected in iPhone 6s Plus

我有

  1. UIImageviewUIView - 背景图片
  2. UIView - 被视为图像顶部的渐变层。

这里为梯度视图给出的约束是

这些在 iPhone 5s、6s 上运行良好,但无法在 iPhone 6s Plus 上运行。渐变视图没有完全覆盖 UIImageView。 附上示例图片

P.S 我已经在 Interface Builder 中取消选中 Constraint to margin。还是行不通。 谁能帮我解决我所缺少的?

在 imageView 和其上的另一个视图上尝试这些约束:

经过反复试验。 我终于找到了解决方案。

  • 删除了与 UIImageView 相同的高度和宽度
  • 将底部和尾部与 UIImageView 对齐