9. Building and Using Controls

The UIControl class provides the basis for many iOS interactive elements, including buttons, text fields, sliders, and switches. These onscreen objects 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. From the prosaic to the obscure, this chapter introduces a range of control recipes you can reuse in your programs.

The UIControl Class

In iOS, controls generally refer to members a library of prebuilt onscreen objects designed for user interaction. Controls include buttons and text fields, sliders and switches, along with other Apple-supplied ...

Get The iOS 4 Developer’s Cookbook: Core Concepts and Essential Recipes for iOS Programmers now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.