关闭模态视图导致 CALayer 保留计数发送到释放

发布于 2024-12-19 21:44:02 字数 295 浏览 4 评论 0原文

在我的应用程序中,我使用方法 [self DismissModalView...] 关闭搜索视图,在 iOS 3 和 iOS 4 中一切正常,但现在我升级到 XCode 4.2 和 SDK 5,此方法在 iOS 5 上运行正常,但当我在 iOS 3 + 4 上测试它时,应用程序崩溃并显示消息日志:

[CALayer retainCount]: message sent to deallocated instance 0xc640b80.

我尝试调查但仍未找出根本原因,请帮助我!

In my app, I use method [self DismissModalView...] to dismiss a search view, everything was ok in iOS 3 and iOS 4, but now I upgraded to XCode 4.2 and SDK 5, this method runs ok againts iOS 5 but when I test it against iOS 3 + 4, the application crashes with message log:

[CALayer retainCount]: message sent to deallocated instance 0xc640b80.

I tried to investigate but still not find out root cause, please help me!

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

吹梦到西洲 2024-12-26 21:44:02

您正在释放一些未保留的视图、自动释放的视图或类似的视图。没有代码无法提供更多帮助。

You are deallocating some view that you didn't retain, autoreleased or something similar. Can't help more without code.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文