View Basics

Recall from Chapter 1 that views are objects that are visible to the user, like buttons, text fields, and sliders. View objects make up an application’s UI. A view:

  • is an instance of UIView or one of its subclasses

  • knows how to draw itself

  • can handle events, like touches

  • exists within a hierarchy of views whose root is the application’s window

Let’s look at the view hierarchy in greater detail.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.227.0.192