Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I can't solve "invalid nib registered for identifier (BNRItemCell)"

Going through the Big Nerd Ranch iOS book, and I'm on day 2 of trying to solve this and I'm going crazy - can anyone help?

I get the following error message:

2014-06-20 11:37:18.764 Homepwner[10388:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'invalid nib registered for identifier (BNRItemCell) - nib must contain exactly one top level object which must be a UITableViewCell instance'

I've hooked up the BNRItemCell.xib to the corresponding class. Things fail after line 57 where the breakpoint is:

fluffy kitten

=======================================================

tour de france

=======================================================

cycling

I know that it's gonna be something so basic that I'll kick myself.

Any help will be appreciated thanks!

like image 505
Return_Of_The_Archons Avatar asked Nov 29 '22 00:11

Return_Of_The_Archons


1 Answers

Observing the TreeView on the left of the IB you have a UIView ( second top level element! ) below the UITableViewCell. Delete it and you should be fine!

like image 132
MABVT Avatar answered Dec 09 '22 17:12

MABVT