- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个来自 Xcode Master-Detail 模板的 iOS 项目。但是,我遇到了“ View 层次结构没有为约束准备好”的错误。主视图中的表格单元格有一个点击手势识别器,当一个单元格被按下时,它会转到详细 View 。在第二次点击时,程序因上述错误而崩溃。与此相关的其他问题似乎在从代码生成约束时发生,但是我一直专门使用 Interface Builder,所以我无法找到另一个像我的案例。
详细 View 包含一个 UITableView 和一个 UIToolbar。这是什么原因造成的?感谢您的帮助。
The view hierarchy is not prepared for the constraints: <NSLayoutConstraint:0x16d79980 V:[_UILayoutGuide:0x16d791b0]-(44)-[UITableView:0x1729b000]>
When added to a view, the constraints items must be descendants of that view (or the view itself). This will crash if the constraint needs to be resolved before the view hierarchy is assembled. Break on -[UIView _viewHierarchyUnpreparedForConstraint:] to debug.
*** Assertion failure in -[UIView _layoutEngine_didAddLayoutConstraint:roundingAdjustment: mutallyExclusiveConstraints:]
*** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Impossible to set up layout with view hierarchy unprepared for constraint.'
最佳答案
我明白了。在检查“所有”尺寸类别的约束后,我有一个我没有创建的顶部空间约束(或者无论如何都不记得船员)并且我不想要。它被重影了,我无法删除它。
单击“安装”复选框为所有尺寸类别安装此约束取消重影约束,然后我能够将其删除,从而解决了崩溃问题。
关于ios - 查看层次结构约束错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25489279/
我正在尝试将多个水平链接的 Button 和 TextView 垂直链接为 View 集,但仍保持平面 View 层次结构。这是我的初始布局和代码:
到目前为止,我已经在Google BigQuery上训练了几种模型,目前我需要查看模型的外观(即架构,损失函数等)。 有没有办法获取这些信息? 最佳答案 仔细阅读文档后,我可以说该功能尚不存在。我什至
本文实例讲述了PHP实现二叉树深度优先遍历(前序、中序、后序)和广度优先遍历(层次)。分享给大家供大家参考,具体如下: 前言: 深度优先遍历:对每一个可能的分支路径深入到不能再深入为止,而且每个
我是一名优秀的程序员,十分优秀!