开发者社区> 问答> 正文

ios 数组越界问题

Terminating app due to uncaught exception 'NSRangeException', reason: ' -[__NSArrayM objectAtIndex:]: index 42 beyond bounds [0 .. 41]'
* First throw call stack:
(0x7ea022 0x181ecd6 0x7d6d88 0x8b10 0x9713 0x2c08c 0x11a5d 0x11c90 0x12bdeb6 0x7be936 0x7be3d7 0x721790 0x720d84 0x720c9b 0x1d8d7d8 0x1d8d88a 0x981626 0x1e23d 0x2645)
terminate called throwing an exception(lldb)

展开
收起
杨冬芳 2016-06-30 11:46:11 2080 0
1 条回答
写回答
取消 提交回答
  • 参考下,https://stackoverflow.com/questions/26757431/terminating-app-due-to-uncaught-exception-nsrangeexception-reason

    2019-10-18 15:28:17
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
手淘iOS性能优化探索 立即下载
From Java/Android to Swift iOS 立即下载
深入剖析iOS性能优化 立即下载