Assertion failure in -[UITableView _configureCellForDisplay:indexPath:]
- 剛使用tableview的時候,忽然出現了下面的錯誤:Assertion failure in -[UITableView _configureCellForDisplay:indexPath:],具體錯誤以下圖
![出現的錯誤 出現的錯誤](http://static.javashuo.com/static/loading.gif)
- 後來仔細檢查,本身太不細心了,把應該寫成return cell的語句,寫成了return nil
![錯誤示意圖 錯誤示意圖](http://static.javashuo.com/static/loading.gif)
- 解決方法:將return nil改爲return cell 就行了
歡迎關注本站公眾號,獲取更多信息