Is there an equivalent way of doing this using animation blocks
[UIView setAnimationTransition:<some_transition> forView:<view> cache:YES];
this seemed to be handy way of not getting staggered animations or to make animations smooth so it doesn’t keep redrawing every so often. But i can’t seem to figure out how to do this with animation blocks. Maybe i’ve just missed something somewhere.
Look at the block based methods for transitions:
+[UIView transitionFromView:toView:duration:options:completion:]and+[UIView transitionWithView:duration:options:animations:completion:].The views are by default cached when you use these block based methods. You turn caching of using the
UIViewAnimationOptionAllowAnimatedContentoption.