See Credible Blocks for port executable blocks of blocks up to 10.5 / iPhone OS 3. This may be easier than rewriting the code, although you will need to implement and add the appropriate animation methods to the UIView metaclass on 3.0 (hint:) class_addMethod().
I don’t think that we will cancel OS 3 support for another 6-9 months, depending on the adoption (especially considering that the iPad is still stuck on 3.2.1).
There is also no easy way to replicate setAnimationWillStartSelector:using the block-based animation API. I used it to synchronize sounds with the animation (you cannot just play the sound because the animation does not start until the layout / image is complete).
source
share