O'Reilly logo

The Complete Idiot's Guide® To iPad and iPhone App Development by Troy Brant

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required