Objective-c – Does someone knows about this error in xcode gdb

iphoneobjective cxcode

2009-07-21 12:47:14.458 FlashCards[1328:20b] * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)'

Best Answer

Looks like you are trying to access an element in an array that does not exist. You are trying the get the 0th element (the first) but the array has a size of 0 (it's empty).

Start by checking in your code for where you are using arrays and the objectAtIndex: method and then sanity check the array sizes while debugging.

Related Topic