Allows you to specify a completion block body after the set of animation actions whose completion will trigger the completion block.
- macOS 10.7+
A block object containing animations for this transaction group.
contextparameter passes the thread’s current
NSAnimationto the Block as a convenience, so code within the Block that wants to change or query properties of the current
contextdoes not have to call
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: