Allows you to specify a completion block body after the set of animation actions whose completion will trigger the completion block.
A block object containing animations for this transaction group.
The context parameter passes the thread’s current NSAnimationContext to the Block as a convenience, so code within the Block that wants to change or query properties of the current context does not have to call currentContext.
The block object returns no value.
A Block object called when animations for this transaction group are completed.
The Block object takes no parameters and returns no value.
Using this method allows you to more naturally group animations and an completion Block.
An example use is as follows. Using this method you would write the following code fragment:
The above code is semantically equivalent to the following: