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!

有帮助吗?

解决方案

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

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top