1

我收到了崩溃。我有一个非常有趣的例外。它是什么?

objc[4841]: EXCEPTIONS: throwing 0x11c06ac0 (object 0x11c06a30, a NSException)
objc[4841]: EXCEPTIONS: searching through frame [ip=0x113b9de sp=0xbfffe6d0] for exception 0x11c06aa0
objc[4841]: EXCEPTIONS: catch(id)
objc[4841]: EXCEPTIONS: unwinding through frame [ip=0x113b9de sp=0xbfffe6d0] for exception 0x11c06aa0
objc[4841]: EXCEPTIONS: handling exception 0x11c06aa0 at 0x113bb9c
objc[4841]: EXCEPTIONS: finishing handler
objc[4841]: EXCEPTIONS: throwing 0x11ea1220 (object 0x11c06a30, a NSException)
objc[4841]: EXCEPTIONS: searching through frame [ip=0x113bb8c sp=0xbfffe6d0] for exception 0x11ea1200
objc[4841]: EXCEPTIONS: searching through frame [ip=0x24b7d83 sp=0xbffff410] for exception 0x11ea1200
objc[4841]: EXCEPTIONS: unwinding through frame [ip=0x113bb8c sp=0xbfffe6d0] for exception 0x11ea1200
objc[4841]: EXCEPTIONS: unwinding through frame [ip=0x24b7d83 sp=0xbffff410] for exception 0x11ea1200
objc[4841]: EXCEPTIONS: handling exception 0x11ea1200 at 0x24b7e16
objc[4841]: EXCEPTIONS: rethrowing current exception
objc[4841]: EXCEPTIONS: searching through frame [ip=0x24b7ddf sp=0xbffff410] for exception 0x11ea1200
objc[4841]: EXCEPTIONS: terminating
objc[4841]: EXCEPTIONS: searching through frame [ip=0x2731eed sp=0xbffff3a0] for exception 0x11ea1200
objc[4841]: EXCEPTIONS: catch(id)
objc[4841]: EXCEPTIONS: unwinding through frame [ip=0x2731eed sp=0xbffff3a0] for exception 0x11ea1200
objc[4841]: EXCEPTIONS: handling exception 0x11ea1200 at 0x2731eff
2012-05-03 15:17:22.803 A[4841:16d03] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[__NSArrayM insertObject:atIndex:]: index 2 beyond bounds [0 .. 0]'
 *** First throw call stack:
 (0x2581022 0x2731cd6 0x256e33e 0x256f1f0 0x11e149 0x2582e99 0x89a89 0x2582e42 0x113b9df 0x255594f 0x24b8b43 0x24b8424 0x24b7d84 0x24b7c9b 0x27137d8 0x271388a 0x1473626 0x2e6d 0x2de5)
4

3 回答 3

2

-[__NSArrayM insertObject:atIndex:]: index 2 beyond bounds [0 .. 0]'意味着您正在尝试使用 NSMutableArray 的 -insertObject:atIndex: 索引值高于数组的实际计数(事实证明,它是空的)。

于 2012-05-03T12:28:06.430 回答
0

似乎您正试图将数据插入到不存在索引位置的数组中。

于 2012-05-03T12:27:51.153 回答
0

以日期开头的行似乎最有可能找出正在发生的事情。

虽然这个问题没有足够的信息。

于 2012-05-03T12:29:04.290 回答