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 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.