Xcode - 由于 iphone 应用程序未捕获异常而终止
当我尝试单击表视图中的单元格而不是将我带到下一个视图时,我收到“由于未捕获的异常而终止”错误。
这是调试器中的代码:
010-03-27 12:52:48.805 MultiDetailView[335:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'
2010-03-27 12:52:48.809 MultiDetailView[335:207] Stack: (
40849995,
2476418313,
40849435,
40849274,
592937,
50711,
5698680,
5701555,
5697083,
5705902,
11163,
3128431,
3089967,
191242,
40390524,
40386632,
49203357,
49203554,
2788833,
9060,
8914
)
关于我应该做什么有什么想法吗?
谢谢。
When I try to cick on cell in my table view rather than take me to the next view I get a "Terminating due to uncaught exception" error.
Here is the code from the debugger:
010-03-27 12:52:48.805 MultiDetailView[335:207] *** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'
2010-03-27 12:52:48.809 MultiDetailView[335:207] Stack: (
40849995,
2476418313,
40849435,
40849274,
592937,
50711,
5698680,
5701555,
5697083,
5705902,
11163,
3128431,
3089967,
191242,
40390524,
40386632,
49203357,
49203554,
2788833,
9060,
8914
)
Any ideas on what I should do ?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
检查你的数组:
换句话说,您试图访问索引 1 处的对象(即数组中的第二个对象),而数组包含少于两个对象。
Check your array:
In other words, you're trying to access an object at index 1 (i.e. the second object in the array), while the array contains less than two objects.