我正在尝试创建一个表视图来复制登录功能。我设计了表视图,并在其他选项卡视图中添加了一些默认值。
当我在模拟器上运行时,我的表视图显示为空 - 但我真的不知道或理解原因。
答案 0 :(得分:1)
您必须在Interface Builder中删除DataSource。只需在那里选择tableView并转到Connections Inspector(右侧的最后一个图标)。顶部是DataSource,只需单击十字架即可将其删除。
单元格必须是静态的(选择了tableView):
"区别在于你不需要对静态进行编码,因为它会是相同的,这就是你应该选择的东西,因为它的登录页面不需要原型" - meda