Chapter 2. Views

Pretty much everything that appears on the iPhone’s screen is a view. Views act like little canvases that you can draw on with colors, pictures, and buttons. You can drag them around the screen. You can resize them. You can layer them. In this chapter, you discover how to design and build screen content using Cocoa Touch and UIViews. You learn about view hierarchy, geometry, and animation, and find out how to combine event feedback from UITouches into meaningful UIView responses. There’s so much that UIViews can do that a single chapter has no hope of covering the entire class with the thoroughness it deserves. Instead, this chapter introduces essential functionality and recipes that you can use as a starting point for your own ...

Get The iPhone™ Developer’s Cookbook: Building Applications with the iPhone SDK now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.