0

I am making an app where the user gets daily book recommendations from an online database. This all works just fine on iPhone and iPod Touch, but crashes (SIGABRT) on iPad on launch (default.png is shown first).

The error that is traced in the console is "Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSCFArray objectAtIndex:]: index (0) beyond bounds (0)'". This happens on the iPad simulator as well.

Can anyone shed any light on this? I would be most grateful!

btw: I have 4.0 as Base SDK deployment target is 3.1.3

4

1 回答 1

0

在 objc_exception_throw 上放置一个断点可以让你找到问题发生的确切位置(你试图从一个空数组中获取一个元素)。

于 2010-10-04T09:10:55.207 回答