Xcode - 由于 iphone 应用程序未捕获异常而终止

发布于 2024-08-26 14:24:40 字数 650 浏览 4 评论 0原文

当我尝试单击表视图中的单元格而不是将我带到下一个视图时,我收到“由于未捕获的异常而终止”错误。

这是调试器中的代码:

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

以歌曲疗慰 2024-09-02 14:24:40

检查你的数组:

原因:'*** -[NSCFArray objectAtIndex:]:索引 (1) 超出界限 (1)'

换句话说,您试图访问索引 1 处的对象(即数组中的第二个对象),而数组包含少于两个对象。

Check your array:

reason: '*** -[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)'

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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文