Marks the beginning of a begin/commit animation block.
- iOS 2.0–13.0Deprecated
- tvOS 9.0–13.0Deprecated
An application-supplied identifier for the animations.
This method signals to the system that you want to specify one or more animations to perform. After calling this method, configure the animation options (using the
set class methods) and then change the desired animatable properties of your views. When you are done changing your view properties, call the
commit method to close the set and schedule the animations.
You can nest sets of animations (by calling this method again before committing a previous set of animations) as needed. Nesting animations groups them together and allows you to set different animation options for the nested group.
If you install a start or stop selector using the
set method, the values you specify for the
context parameters are passed to your selectors at runtime. You can use these parameters to pass additional information to those selectors.
Use of this method is discouraged in iOS 4.0 and later. You should use the block-based animation methods to specify your animations instead.