iphone - -[CALayer保留] : message sent to deallocated instance

标签 iphone calayer nsautoreleasepool nszombie

我正在开发一个 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/

相关文章:

iphone - iPhone GPS 能否为正在运行的应用程序提供准确的速度?

ios - 带有圆角和投影的 UICollectionViewCell 不起作用

ios - 表格 View 单元格中的阴影层越界

iphone - 自动释放对象两次

cocoa - 如果 main() 创建一个 NSAutoreleasePool 并在退出之前耗尽它,这有什么关系吗?

iphone - Xcode 3.1.4 中内置分析器

ios - NSScroll View 中的 contentsize 和 contentOffset 等效

iphone - UITableViewCell 去除每行之间的白色并显示 UIView 的背景图像

iOS 理解图层蒙版

objective-c - POSIX 回调和带 ARC 的 NSAutoreleasePool