UITableView failed to obtain a cell from its dataSource?

error cause:

The

cell is called earlier. The cell is first looped and then created. The order is wrong.

cell object is empty, then check carefully, it is static BOOL nibsRegistered error.

, the first time the object is created, the class variable becomes YES, and then when you recreate the object, you can’t do nibWithNibName, so it won’t run.

When the

tableview is loaded, it will report an error in cellForRowAtIndexPath, because it does return nil cell, so you have to trust the program to give you feedback. Cellforow data source method, you can’t return nil cell.

Read More: