我正在开发一个 iPhone 应用程序,当我打开 NSZombieEnabled 时,我经常会因错误而崩溃:
*** -[CALayer retain]: message sent to deallocated instance 0xe6012e0
当我在 View Controller 中推送或弹出 View 时,它总是会出现。之前有时会出现这样的错误:
-[UIApplication endIgnoringInteractionEvents] called without matching -beginIgnoringInteractionEvents. Ignoring.
这是什么意思?有人知道或者遇到过这个问题吗?
非常感谢您的帮助!
罗曼
最佳答案
这可能意味着您正在尝试保留已释放的 UI 对象,例如 UIButton。有多种方法可以追踪此问题,但如果您可以缩小应用程序中发生此问题的范围,我通常会开始注释版本,直到看到有问题的版本在哪里。我猜你发布了一些自动发布的东西。
关于iphone - -[CALayer保留] : message sent to deallocated instance,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3235949/