【发布时间】:2016-10-06 17:52:22
【问题描述】:
我收到此错误消息:failed to obtain a cell from its dataSource
奇怪的是
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
甚至没有被调用,问题不在于返回的单元格为零。我设置了断点。 cellForRowAt不会被调用。
numberOfRowsInSection 返回值。
我不知道它是否相关,但现在我不使用UITableViewController,我只有一个UIViewController,它是datasource 和delegate 的UITableView。我希望它不会造成干扰。有什么想法吗?
【问题讨论】:
-
任何错误 sss?
标签: ios uitableview swift3