'UITableView' no pudo obtener una celda de su fuente de datos
Actualicé Xcode y desde entonces tengo problemas con mi base de datos. código:
override func numberOfSections(in tableView: UITableView) -> Int {
// return the number of sections
return 1
}
override func tableView(_ tableView: UITableView, numberOfRowsInSection section: Int) -> Int
{
// return the number of rows
return leadItems.count
}
func cellForRow(at indexPath: IndexPath) -> UITableViewCell?
{
let cell = tableView.dequeueReusableCell(withIdentifier: "Cell", for: indexPath) as! LeadsTableViewCell
// Configure the cell...
cell.user_name_label.text = leadItems[indexPath.row].user_name
cell.school_name_label.text = leadItems[indexPath.row].school_name
return cell
}
El error que obtengo es:
Finalización de la aplicación debido a la excepción no detectada 'NSInternalInconsistencyException', razón: 'UITableView (; layer =; contentOffset: {0, -64}; contentSize: {375, 65802}>) no pudo obtener una celda de su dataSource ()