xcode 仪器指向 main ( ) 中的 NSZombie

发布于 2024-12-18 08:31:24 字数 506 浏览 5 评论 0原文

我一直在设备上解决 EXC_BAD_ACCESS 问题,终于能够在模拟器中复制该问题。我在 Instruments 中使用了 NSZombie,它指向 main.m 中的代码,如下面的屏幕截图所示。

我很困惑是什么导致了这种情况以及解决方案是什么。该应用程序是一个基于 tabBarController 的应用程序。第三个选项卡是一个 navController,有 3 个 VC。前两个 VC 是 tableViewController。点击第一个 VC 中的行会进入第二个 VC 中的表。当第二个VC中的表的行数>时全屏,我滚动到底部查看一个条目。接下来,当我使用 navController 的“后退”按钮返回到第一个 VC 时,就会发生崩溃。我希望我说得有道理...

谢谢,

在此处输入图像描述

在此处输入图像描述

I have been fighting EXC_BAD_ACCESS problem on the device, and finally was able to dup the problem in the simulator. I used NSZombie in Instruments and it points to code in main.m as shown below in the screenshots.

I am confused as to what can cause this and what the solution would be. The app is a tabBarController-based app. The third tab is a navController, with 3 VCs. The first two VCs are tableViewController. Tapping a row in the first VC leads to the table in the second VC. When the table in the second VC has number of rows > screenful and I scroll to the bottom to look at an entry. The crash happens when, next, I return to the first VC using the navController's Back button. I hope I am making sense...

Thanks,

enter image description here

enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文