Keep getting compile error


Just at the beginning of this chapter, typing in the code that the book supplies you with, but I keep getting this error and I can’t figure out how to fix it?

I can’t proceed in the chapter without fixing this error:

‘NSInternalInconsistencyException’, reason: ‘-[UITableViewController loadView] loaded the “BNRItemsViewController” nib but didn’t get a UITableView.’

Can someone help?


Okay, I figured it out. It is due to a naming convention. It didn’t like me calling it “BNRItemsViewController”, when I deleted the whole thing and created it as “BNRTableViewController” it was fine. Basically it wanted the word TableViewController when it was looking for the NIB file.