A control that offers a binary choice, such as on/off.
Declaration
class UISwitch : UIControl
Overview
The UISwitch class declares a property and a method to control its on/off state. As with UISlider, when the user manipulates the switch control (“flips” it), it triggers the valueChanged event.
You can customize the appearance of the switch by changing the color used to tint the switch when it is on or off.
valueChanged
A touch dragging or otherwise manipulating a control, causing it to emit a series of different values.
Declaration
'Programming > Udacity Nano Degree - iOS Developer' 카테고리의 다른 글
Unexpectedly found nil while implicitly unwrapping an optional value (0) | 2020.10.22 |
---|---|
View Controller (0) | 2020.10.19 |
Connecting the Stop Recording Button (0) | 2020.10.19 |
From Code to UI Element (0) | 2020.10.19 |
Pitch Perfect - Adding Code for the Button (0) | 2020.10.19 |