iphone - *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 1 beyond bounds [0 .. 0]' -


what meaning

* terminating app due uncaught exception 'nsrangeexception', reason: '* -[nsmutablearray objectatindex:]: index 1 beyond bounds [0 .. 0]'

so can solve problem thanks

zero based addressing.

if have 1 item in nsarray, first item in array @ index 0, not index 1.


Comments

Popular posts from this blog

ruby - When to use an ORM (Sequel, Datamapper, AR, etc.) vs. pure SQL for querying -

php - PHPDoc: @return void necessary? -

c++ - Convert big endian to little endian when reading from a binary file -