关闭模态视图导致 CALayer 保留计数发送到释放
在我的应用程序中,我使用方法 [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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您正在释放一些未保留的视图、自动释放的视图或类似的视图。没有代码无法提供更多帮助。
You are deallocating some view that you didn't retain, autoreleased or something similar. Can't help more without code.