14. Adding an Editor

The last substantive change we’ll make to Passer Rating is to add an editor for passers. The task itself will be very quick—you know how to add a scene, and the concepts of the editor are not difficult. But it’ll give us the chance to take a deeper look at Storyboard.

The Plan

We already know roughly what we want to do—the layout is already there in Figure 8.2 in Chapter 8, “Starting an iOS Application.” It’s a modal view (it slides up from the bottom), containing a table with rows for editing a passer’s first and last names and the name of his current team. Save and Cancel buttons allow the user to exit the editor one way or another.

Adding a Modal Scene

Bring Main.storyboard into the editor, and use EditorCanvas → ...

Get Xcode 6 Start to Finish: iOS and OS X Development, Second Edition now with O’Reilly online learning.

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