[英]Why does my UITableView need to be below UIButton in the scene outliner
I have an UIView with a UIButton and a UITableView. 我有一个带有UIButton和UITableView的UIView。 I constrained the UIButton (left, top, right, bottom) to (0,0,0,-) with a height of 50px.
我将UIButton(左,上,右,下)限制为(0,0,0,-),高度为50px。 Below i constrained the UITableView (left, top, right, bottom) to (0,0,0,0) so that the screen would be filled with both views as such:
在下面,我将UITableView(左,上,右,下)限制为(0,0,0,0),这样屏幕将被两个视图填充,如下所示:
In this case the UIButton is above the UITableView in the scene outliner: 在这种情况下,UIButton在场景大纲视图中的UITableView上方:
However whenever I reorder the view in the UIView so that the TableView is above the UIButton in the Scene Outliner it also moves my UITableViewCells but not my UITableView: 但是,每当我对UIView中的视图重新排序以使TableView在Scene Outliner中的UIButton上方时,它也会移动UITableViewCells而不移动UITableView:
The constraints are the same and nothing is moved except for the layering in the scene outliner. 约束是相同的,除了场景轮廓绘制器中的分层外,什么都没有移动。 Why do my UITableViewCells move down whenever i place my UITableView above my UIButton?
每当将UITableView放在UIButton上方时,为什么UITableViewCells会向下移动?
当选中视图控制器属性中的“调整滚动视图插入”时,Interface Builder会执行此操作。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.