Assertion failure in -[UITableView _configureCellForDisplay:indexPath:]

  • 刚使用tableview的时候,忽然出现了下面的错误:Assertion failure in -[UITableView _configureCellForDisplay:indexPath:],具体错误以下图

出现的错误

  • 后来仔细检查,本身太不细心了,把应该写成return cell的语句,写成了return nil

错误示意图

  • 解决方法:将return nil改为return cell 就行了
相关文章
相关标签/搜索