ios - 将 tableView 装入其父 UIViewController

标签 ios xcode swift uitableview

我使用 Storyboard 将一个 TableView 放到我的 ViewController 中,我希望它被填充而没有任何边距,就像下图中带有 TableView 的下部 ViewController 一样。

enter image description here

我尝试了其他类似问题的答案中的一些建议,但根本没有用。

有人说我需要设置 PIN。我试过如下:

enter image description here

我为所有 4 个约束输入了“0”,但这是我得到的:

enter image description here

这个 AutoLayout 东西让我很难自动布局东西,不像它的名字。

我现在该怎么办?

最佳答案

只需点击 Resolve Auto layout Issues,然后点击 Update frames,如下图所示。

enter image description here

关于ios - 将 tableView 装入其父 UIViewController,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34891242/

相关文章:

ios - Xcode 运行脚本阶段中的沙盒问题

ios - 使用多个字符串创建 onDoneBlock

ios - 使用 Assets 目录是否适用于应用程序中的所有图像或仅适用于图标/启动图像

ios - iOS 中是否有委托(delegate)函数在 UIViewController 返回顶部时得到通知?

ios - 如何在不旋转 map 的情况下将 GoogleMaps 居中?

ios - 解析: fatal error: NSArray element failed to match the Swift Array Element type

ios - “tmp”目录在 iOS 中太大

ios - Xcode 机器人与 Jenkins

ios - 如何将 24 小时时间格式转换为 12 小时时间格式?

swift - 如何在 Firebase 数据库中保存日期? [ swift ]