For the life of me, I cannot figure this out.
Here's the scenario: I have a tableview with a searchbar at the top. I do a search. I tap a search scope button. Do another search. Tap the 开发者_如何学Cother search scope button (the one that was selected by default). Do another search.
Crash
I'm presented with the following:
*** -[CALayer retain]: message sent to deallocated instance 0x4c7fa20
and it points to the following line of code:
[self.tableView reloadData];
I'm not releasing the array I use for the tableview data until the file's dealloc method.
Any ideas? I'm at a loss here. :confused:
Try setting NSZombieEnabled. That should give you a handle on exactly what is being over-released.
Check that all the objects you're using in and around the search are not autoreleased objects - things like [NSDate date] etc. that can get autoreleased.
Maybe post some code showing your search ?
精彩评论