底部space设置约束后不会消失

Bottom space won't disappear after setting constraints

我有一个故事板如下所示的应用程序:

在输出中,用户可以在两个 tableViewController 之间滚动(使用嵌入在容器中的 pageViewController)。

我将容器的约束设置为(top:50, right:0, bottom:0, left:0,不相对于边距)。我还尝试将两个 tableView 中的 "heightForFooterInSection" 设置为 0 和 CGFLOAT_MIN,但底部间距不会消失。这是我的输出:

有什么建议吗?我确定我缺少一个明显的解决方案,但我不知道是哪一个。

我通过删除页面控件解决了我的问题,即删除了以下 UIPageViewControllerDataSource 方法:

-(NSInteger)presentationCountForPageViewController:
-(NSInteger)presentationIndexForPageViewController:

默认情况下页面控件是白色的,这就是我错过它的原因。

感谢@matt,他向我指出我应该使用 View Debugger,这很容易做到。

希望对您有所帮助!