USING VIEWS

So far, you have seen quite a number of views in action: Round Rect Button, Text Field, and Label. All these views are quite straightforward, but they provide a good opportunity for learning how to apply the concepts behind outlets and actions.

To use more views, you can locate them in the Object Library window in the Utilities panel (see Figure 3-6).

image

FIGURE 3-6

The Library is broadly divided into the following sections:

  • Objects & Controllers — Contains views that control other views, such as the View Controller, Tab Bar Controller, Navigation Controller, and so on
  • Data Views — Contains views that display data, such as the Image View, Table View, Data Picker, Picker View, and so on
  • Controls — Contains views that accept input from users as well as display values, such as the Label, Round Rect Button, Text Field, and so on
  • Windows & Bars — Contains views that display other miscellaneous views, such as View, Search Bar, Toolbar, and so on
  • Gesture Recognizers — Contains classes that perform gesture recognition. Gestures include the tap, the pinch, rotation, and so on.

In the following sections, you learn how to use some of the views available in the Library. Although it is beyond the scope of this book to show the use of every view, you will see a number of views in action throughout the book. By learning some of the fundamental view concepts in this chapter, you can use ...

Get Beginning iOS 5 Application Development 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.