小编Lee*_*sen的帖子

添加披露指标时ios8单元格约束中断

我在IOS8上有自动布局的问题,我可以重新创建的最简单的情况是一个简单的tableView.我设置了一个静态单元格,然后只需添加一个标签.

我的目标是让标签在很大程度上填满空间,所以我对标签有三个限制......

  1. 在superview中垂直居中(我认为这很好)
  2. 将标签尾随边距设置为30(相对于superview)
  3. 将标签前导边距设置为30(相对于superview)

这一切都非常好,完美无缺,没有重大问题或警告(它确实警告零高度,但我不认为这个问题太多了)

现在......如果我添加一个披露指标,它就会崩溃.它看起来还不错,但我得到以下内容:

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)

objective-c uitableview ios ios8

24
推荐指数
1
解决办法
5122
查看次数

标签 统计

ios ×1

ios8 ×1

objective-c ×1

uitableview ×1