在调试CATransition动画中发现animation.timingFunction = UIViewAnimationCurveEaseInOut;有错误提示:implict conversion of ‘int’ to ‘CAMediatimingFunction’ is disallowed with ARC。估计是因iOS5.0中在项目中使用了ARC,对以前的这种使用不再支持了。
修改为:
animation.timingFunction = [CAMediaTimingFunctionfunctionWithName:kCAMediaTimingFunctionEaseInEaseOut];