iOS aspect ratio constraint breaks on iOS7, works on iOS8

前端 未结 6 1747
春和景丽
春和景丽 2021-02-04 18:37

In my app, I have setup a UIView\'s constraints in a way where its height gets calculated from its width using the aspect ratio constraint. It works perfectly on iOS8 with every

6条回答
  •  太阳男子
    2021-02-04 19:35

    I had this crash on iOS7 when I had a combination of aspect ratio, equal height to container, and zero top and bottom spacing to container constraints. The equal height to container constraint was redundant as it was constrained to the top and bottom of the container so I removed it and the crash stopped. It must be a bug in the OS.

提交回复
热议问题