iOS aspect ratio constraint breaks on iOS7, works on iOS8

前端 未结 6 1751
春和景丽
春和景丽 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:20

    Indeed, this must be OS (iOS 7) bug. I've spent few days debugging autolayout collapsing totally (note: NO NSLayout exceptions). I've almost collapsed too.

    It was ALL due to using some combinations of constraints together with aspect-ratio constraints.

    I am solving this with redesigning UI...Pain.

提交回复
热议问题