Called to notify the cell that it is about to transition to a new cell state.
- iOS 3.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
A bit mask indicating the state or combination of states the cell is transitioning to.
UITable can implement this method to animate additional changes to a cell when it is changing state.
UITable calls this method whenever a cell transitions between states, such as from a normal state (the default) to editing mode. The custom cell can set up and position any new views that appear with the new state. The cell then receives a
layout message (
UIView) in which it can position these new views in their final locations for the new state. Subclasses must always call
super when overriding this method.
Note that when the user swipes a cell to delete it, the cell transitions to the state identified by the
UITable constant but the
UITable is not set.