Q:

UIAnimator message sent to deallocated instance

Hey guys, I'm getting crazy.
*** -[UIAnimator removeAnimationsForTarget:]: message sent to deallocated instance 0x5ba13d0

It happens in different moments, when I scroll my tableview, when I switch my filter (a UISegmentedControl).
Help me, I'm getting crazy with this guys :)
How can I fix?

A:

I just solved the same problem.
I thought it was related to UIAnimation, but it was related to UITableViewCell, instead.
I found a good starting point looking at this article.
http://marius.me.uk/blog/2011/mar/fixing-uianimator-removeanimationsfortarget-crash/
Good luck and let me know!

A:

I had the same symptom (crash caused by [UIAnimator removeAnimationsForTarget:] message being sent to deallocated UITableViewCell, but it turned out to have been caused by a reason different from the one cited in the above solution. It turned out that the reason was that my UI was being updated by a non-UI thread. Specifically, I was calling popViewController:animated: from a background thread. When I moved this invocation to the UI thread via a callback the problem went away.

