June 2011
Intermediate to advanced
590 pages
19h 31m
English
In previous chapters, you’ve created several views: a UIButton, a UILabel, etc. But what exactly is a view?
A view exists within a hierarchy. The window (an instance of UIWindow) is a view and the root of the hierarchy. It has subviews (that appear on the window). Those views can also have subviews.
In this chapter, you are going to create your own UIView subclass that fills the screen with concentric circles, as shown in Figure 6.1. You will also learn how to draw text and enable scrolling and zooming.
Figure 6.1 View that draws concentric circles
Read now
Unlock full access