O'Reilly logo

The Core iOS 6 Developer’s Cookbook, Fourth Edition 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

2. Building and Using Controls

The UIControl class provides the basis for many iOS interactive elements, such as buttons, text fields, sliders, and switches. These view objects have more in common than just deriving from their ancestor class. Controls all use similar layout paradigms and target-action triggers. Learning to create a single control, no matter how specialized, teaches you how all controls work. Controls may appear visually unique and specialized, but use a single design pattern. 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 ...

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