基于选项卡栏的应用程序出现非常奇怪的 iPhone 应用程序崩溃问题
我知道标题听起来有点尴尬,但让我解释一下我的问题。
我有一个基于标签栏的 iPhone 应用程序,到目前为止运行良好。我可以切换选项卡,每个选项卡都会加载一个视图控制器。
但这是它崩溃的方式。在我使用该应用程序并使用许多其他应用程序后,我切换回我的应用程序(例如一小时后)。该应用程序显示了我离开时的屏幕。现在,当我尝试更改选项卡时,它立即崩溃。
问题是我无法在模拟器或调试模式下重现此崩溃。我尝试打开它,然后关闭它,然后重新打开它,但一切正常。只有在一定时间后才能重现崩溃。但我没有任何日志。
也许有人遇到了同样的问题并且知道在这里该怎么做?
I know the title sounds a bit awkward but let me explain my problem.
I have a tab bar based iPhone app which works perfectly so far. I can switch through the tabs and every tab loads a view controller.
But here is how it crashes. After I used the app and working with a bunch of other apps I switch back to my app (for example after one hour). The app shows the screen where I left it. Now when I try to change the tab, it crashes immediately.
The problem is that I can't reproduce this crash in the simulator or in the debug mode. I tried to open it, then close it, then reopen it but then everything works. Only after a certain amount of time the crash can be reproduced. But I don't have any logs.
Maybe anyone had the same the problem and knows what to do here?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
它是否与内存不足有关(即,您有一个仅在内存不足时出现的错误)?您是否在模拟器中尝试过“模拟内存警告”?
Could it be related to low memory (i.e., you have a bug that only shows up during low memory)? Have you tried "Simulate Memory Warning" in the simulator?
使用iPhone实用程序将您的设备与系统连接并找到崩溃的原因。可能只是内存问题。
Connect your device with system using iPhone utility and found the reason for crash. It may be memory problem only.