獲得細胞出現此錯誤消息:failed to obtain a cell from its dataSource
的UITableView:無法從它的DataSource
奇怪的是
func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
甚至沒有被調用,問題不在於恢復細胞是零。我放置了斷點。 cellForRowAt
不會被調用。
numberOfRowsInSection
返回值。
我不知道這是有關與否,但現在我不使用UITableViewController
,我只是有一個UIViewController
,並且它是爲UITableView
的datasource
和delegate
。我希望它不會造成干擾。任何想法?下面檢查表
任何錯誤sss? –