O'Reilly logo

The iPhone™ Developer’s Cookbook: Building Applications with the iPhone SDK by Erica Sadun

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

Chapter 8. Controls

The UIControl class provides the basis for many iPhone interactive elements, including buttons, text fields, sliders, and switches. These controls have more in common than their ancestor class. Controls all use similar layout and target-action approaches. This chapter introduces controls and their use. You discover how to build and customize controls in a variety of ways. You read about well-documented SDK calls and about less-documented ones. You see how disassembling the UIControl view hierarchy enables you to access and modify control elements. From the prosaic to the obscure, this chapter introduces a wide range of control recipes you can reuse in your programs.

Recipe: Building Simple Buttons

The iPhone supports several ...

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