Autolayout problems with iOS8 with code that works fine on iOS7

前端 未结 3 1562
悲哀的现实
悲哀的现实 2020-12-01 07:56

I\'m in the midst of developing an app for the iPhone and iPad. It supports iOS6 and iOS7 and it uses auto layout exclusively.

This past week, when Apple announce

3条回答
  •  鱼传尺愫
    2020-12-01 08:24

    In my case, the problem related to constraints labeled UIView-Encapsulated-Layout-Width and UIView-Encapsulated-Layout-Height. When I removed them, everything behaved as though my view was of zero size, with everything centered on the upper left corner of the screen. When I left them in, new constraints worked as expected. I also retained the constraints labeled _UILayoutSupportConstraint.

提交回复
热议问题