我在IOS8上有自动布局的问题,我可以重新创建的最简单的情况是一个简单的tableView.我设置了一个静态单元格,然后只需添加一个标签.
我的目标是让标签在很大程度上填满空间,所以我对标签有三个限制......
这一切都非常好,完美无缺,没有重大问题或警告(它确实警告零高度,但我不认为这个问题太多了)
现在......如果我添加一个披露指标,它就会崩溃.它看起来还不错,但我得到以下内容:
2014-10-30 15:51:46.358 ContraintIssue[25572:1586028] 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 the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
( …Run Code Online (Sandbox Code Playgroud)