0

I've looked at several other questions from people having the same problem but none of the solutions have fixed my problem. I have removed all breakpoints other than Exception breakpoints, so I can't really say I know what is going on.

Here is the code: code with error

And here is what the Debug Navigator reports: error

otis92
  • 37
  • 1
  • 3
  • 7
  • Do you get any error message when you continue from the exception breakpoint? – Martin R May 10 '14 at 20:41
  • 1
    It is a good practice on SO to post code using the code formatting provided by the editor instead of screenshots. – indyfromoz May 10 '14 at 20:49
  • I get an NSInternalInconsistencyException – otis92 May 10 '14 at 20:51
  • Post the actual error message. – rdelmar May 10 '14 at 20:58
  • 2014-05-10 16:05:54.976 FinalProject[15650:60b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Could not load NIB in bundle: 'NSBundle (loaded)' with name 'AssignmentCell'' *** First throw call stack: .... libc++abi.dylib: terminating with uncaught exception of type NSException (lldb) – otis92 May 10 '14 at 21:07

1 Answers1

0

You have to create an instance of your AssignmentCell class if the dequeued instance is null. Add a check for null at the line where you have the exception. If the cell is null, alloc & init it there.

EDIT - After looking at your error message, it looks like your app attempts to load the NIB file for the table view cell and fails to do so. If you have a NIB defined for the table view cell, make sure you have it included in the project properly. Here is an example of a similar problem.

Community
  • 1
  • 1
indyfromoz
  • 4,045
  • 26
  • 24
  • I tried doing this and the check isn't even reached because the above line causes it to crash. – otis92 May 10 '14 at 21:02