Contents

setState(_:)

Sets the state of the control.

Declaration

func setState(_ value: Int)

Parameters

  • value:

    The state the control should be in.

Discussion

A control’s state (for example, checked or unchecked) affects how it is drawn. Note that push buttons are always in the on state.

See Also

Getting and Setting the Control’s State