Exploring How to Get Content on the Screen

In the preceding chapter, we assembled views to create a complete application. We used Interface Builder to create UI elements, and for the most part, simply replaced one view with another to move the user from view to view. In this chapter, we are going to take a closer look at the UIView and how it can be used to programmatically create dynamic content. This includes an exploration of how to place components on the screen as well as animate them.

Understanding UIView

The class UIView is the base component class of UIKit. All other UI elements, such as buttons, switches, and scroll views, to name a few, are subclasses of UIView. Even the class UIWindow is a subclass of UIView, so when we manipulate ...

Get Beginning iOS 5 Games Development: Using the iOS 5 SDK for iPad, iPhone, and iPod Touch 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.