iPhone 应用程序崩溃(可能是由于使用多个视图)
我正在准备一个 iPhone 应用程序,其中我在视图控制器之间使用许多转换。 这意味着有一个主菜单视图控制器,在我按下必要的框后,将推送一个模态视图控制器。之后,我按下退出按钮并再次回到主菜单,然后我可以重新进入。
问题是,当我多次进入和退出视图控制器时,应用程序崩溃,并且我的仪器中有许多对象分配(但没有泄漏)。
我还使用了很多 UIImageView。 对可能出现的问题有什么建议吗?
非常非常感谢! (使用iPhone操作系统3.1.2)
I am preparing an iphone application in which I am using many transition among view controllers.
This means that there is one main menu view controller and after i press the necessary box, a modal view controller is being pushed. After this, I press an exit button and come again to the main menu and I can reenter.
The problem is that when I enter and exit my viewcontrollers many times, the application crashes and I have many object allocations in my instruments (but no leaks).
I also use many UIImageViews.
Any suggestions on what may be wrong?
Thank you very very much!
(using iphone OS 3.1.2)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在我的脑海中,有几件事可能会出错:
你能发布崩溃日志吗? (如果您在设备上进行测试,可以通过检查 Xcode 中的崩溃日志来查找:Window->Organizer->iPhone Development(侧边栏)->Crash log。
Off the top of my head, there are a couple of things that might be going wrong:
Can you post a crash log? (If you're testing on a device, you can find out by checking the crash log in Xcode: Window->Organizer->iPhone Development(sidebar)->Crash logs.
您可能正在尝试访问已释放的成员变量。找出应用程序崩溃位置的一种方法是单击工具栏中的“检查点”按钮并运行应用程序。
当它崩溃时,打开调试器窗口 (Cmd-Shift-Y) 并在堆栈跟踪中查找您的方法之一。这个位置通常是你做错事的地方。
You may be trying to access a member variable that has already been released. One way to find out where the application crashes is to click on the "Checkpoints" button in the toolbar and run the application.
When it crashes, open the Debugger window (Cmd-Shift-Y) and look for one of your methods in the stack trace. This location is usually where you're doing something wrong.