*** Terminating app due to uncaught exception ‘NSRangeException‘, reason: ‘*** -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array‘
*** First throw call stack:
(0x1f9b012 0x1a90e7e 0x1f3d0b4 0x6baaf 0x1aa46b0 0x1c1bb 0x1aa46b0 0x14d0765 0x1f1ef3f 0x1f1e96f 0x1f41734 0x1f40f44 0x1f40e1b 0x27bd7e3 0x27bd668 0x9d4ffc 0x2a32 0x2965)
这种报错怎么处理?
很明显是数组越界,意思是,你在使用数组的时候,比如你有0-8 共9个对象,可你要去取第10个元素array[9]([array objectAtIndex:9] )那肯定出错了撒!看看是哪个地方的数组下标用错了。
Terminating app due to uncaught exception 'NSRangeException', reason: -[__NSArrayM objectAtIndex:]: index 0 beyond bounds for empty array'
原文:http://www.cnblogs.com/lawrence-h/p/4286420.html