我正在尝试将UILabel固定到它的父细胞上.我添加了四个约束(顶部,前导,尾随,底部),它们在iOS 8.0上运行良好,但在iOS 7.X上运行不正常.请看下面的图片:
我究竟做错了什么?请指教!
它似乎只是在Xcode 6 GM之后才被打破.我的方法在Xcode 6 beta 7中运行良好.
此外,如果我减少内部视图的宽度,它会抛出以下警告:
2014-09-10 19:58:28.109 Test[57827:60b] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to …
Run Code Online (Sandbox Code Playgroud)