cellForRowAtIndexPath
函数返回了nilbash
override func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath) -> UITableViewCell {
let cell = tableView.dequeueReusableCell(withIdentifier: "reuseIdentifier", for: indexPath)
// Configure the cell...
return cell
}
复制代码
检查:ide
1.storyboard上有没有给cell加identifier函数
2.identifier有没有写错ui
3.函数自己是否是还没实现spa
4.if else返回其中一个cell时的判断错乱了code
5.想到再加视频