This code is incorrect even in MRR (not ARC). The only reason it doesn't crash is because UIViewAnimationCurveEaseInOut is set to 0 (which becomes nil after the translation).
You should use instead
[animation setTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]
This will do what you intend to do, with the exception of the actual instance of CAMediaTimingFunction* .
source share