Son Nguyen
Son Nguyen

Reputation: 3491

Dismiss modal view cause CALayer retainCount sent to deallocated

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!

Upvotes: 1

Views: 300

Answers (1)

unexpectedvalue
unexpectedvalue

Reputation: 6139

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

Upvotes: 1

Related Questions