invalid nib registered for identifier (CELLNAME) – nib must contain exactly one top level object which must be a UITableViewCell instance

I had the same problem as above but I wasn’t using storyboards and the problem just appeared out of the blue.

I found that the solution was in the tableview cell file. I had added a uibutton, but it had been added outside the bounds of the cell by mistake. This meant it was almost like an extra view in the uiview.

Once I found it and deleted this extra view the problem disappeared immediately.

If you have having this error, check the uitableviewcell for extra views and objects added by mistake

Leave a Comment