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

Get Xcode 6 Start to Finish: iOS and OS X Development, Second Edition 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.