Debugging runtime error "Terminating app due to uncaught exception 'NSInternalInconsistencyException

Posted by Bill on Stack Overflow See other posts from Stack Overflow or by Bill
Published on 2010-05-02T02:55:41Z Indexed on 2010/05/02 3:07 UTC
Read the original article Hit count: 320

Filed under:
|

I'm going through the Beginning iPhone Development book & stuck in chapter 9. I've spent a few hours trying to debug this error w/o avail:

2010-05-01 19:27:51.361 Nav2[4113:20b] *** Assertion failure in -[UITableView _createPreparedCellForGlobalRow:withIndexPath:], /SourceCache/UIKit/UIKit-984.38/UITableView.m:4709
2010-05-01 19:27:51.362 Nav2[4113:20b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath:'
2010-05-01 19:27:51.364 Nav2[4113:20b] Stack: (
 ...
)

I'm not looking for help w/ the book, but tips for how to debug this error? Can I pin down which of my cellForRowAtIndexPath methods is the problem? And how to inspect the type? Or other things should I look at?

© Stack Overflow or respective owner

Related posts about objective-c

Related posts about cocoa