O'Reilly logo

Xcode 5 Start to Finish: iOS and OS X Development by Fritz Anderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

10. An iOS Application: Controller

If I were smart, I’d start unit-testing the model as soon as the first draft was done, before adding the complexity of a human-interface layer. But I’m not smart; I’m going to put testing off till Chapter 15, “Unit Testing.”

Instead, let’s go ahead with the first cut at a real app. Xcode’s master-detail application template provides a working version of the first table. Let’s convert that into a table of quarterbacks and their ratings.

You remember from the “The Controllers” section of Chapter 8, “Starting an iOS Application,” that the view comprising a full-screen stage in an iOS application is managed by a view controller, a subclass of UIViewController. iOS services view controllers with a defined repertoire ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required