iPad中的约束条件为空值

时间:2015-12-10 14:13:32

标签: ios

我正在制作通用应用。我正在添加表页脚视图。我在最后一个表格单元格和表格页脚视图之间使用填充视图。填充视图的高度是动态设置的。 它在iPhone上工作得很好。但是当我在iPad上运行同样的工作时,我正在收到破坏限制的日志警告。 我没有得到什么类型和我的约束在哪里打破。 以下是日志警告: -

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. 
  

(       "(null),First View:0x78f0c0f0:(null),Second View:0x78f37240:(null)",       "(null),First View:0x78f15550:(null),Second View:0x78f0c0f0:(null)",       "(null),First View:0x788d2c50:(null),Second View:0x78f15550:(null)",       "(null),First View:0x78fe3720:(null),Second View:0x788d2c50:(null)",       "(null),First View:0x78f37240:(null),Second View:0x78fe3720:(null)",       "(null),First View:0x788d2c50:(null),",       "(null),First View:0x78f0c0f0:(null),",       "(null),First View:0x78f37240:(null)," )

将尝试通过违反约束来恢复 (null),First View:0x78f0c0f0:(null),

在UIViewAlertForUnsatisfiableConstraints处创建一个符号断点,以便在调试器中捕获它。 UIView中列出的UIVonstraintBasedLayoutDebugging类别中的方法也可能有所帮助。

非常感谢帮助。 感谢

1 个答案:

答案 0 :(得分:0)

通过选择视图将wAny hAny更改为wRegular hRegular和Check预览,然后转到显示助理编辑器 - >将手册更改为预览并检查所需的更改