setNextState()
Changes cell’s state to the next value in the sequence.
Declaration
func setNextState()Discussion
If a cell has three states, it cycles in this order: on, off, mixed, on, off, and so forth. If the cell has only two states, it toggles between them.