iOS animation experts! What are the pros and cons of each method? I know Apple recommends blocks instead of the old UIView animation methods (UIView beginAnimations, etc), but what about CAAnimation? When would you use one method vs the other? Is there a tradeoff in terms of performance?
iOS animation experts! What are the pros and cons of each method? I know
Share
1) There is not much difference in terms of memory expenses between UIView’s animation blocks and
CALayers'sCAAnimationnor in terms of the objects themselves.2) There are limitations to the type of animations you can achieve with
UIView'sanimation, so you might be forced to useCAAnimationanyway.3) For those types of simpler animations that UIView can handle, it is usually a simpler API to use than that of
CAAnimation.