Basic Built-In Controls
Several of the controls on the iPhone and iPad are similar to controls you are accustomed to on the desktop. For instance, the slider control looks very much like sliders you would see in a Java or C# application. However, other controls are unique to the iPhone OS and take advantage of the touch-friendly screen.
Here is a quick overview of the controls covered in this chapter:
• Switch: A switch is used to toggle between Boolean values. You normally use switches to turn on or off certain settings or features in your app. In code, a switch is represented using the UISwitch class.
• Slider:A slider is used to specify a numeric value within a range of values. In the iPhone and iPad Settings application, you use sliders ...