O'Reilly logo

Swift Programming: The Big Nerd Ranch Guide by John Gallagher, Matthew Mathias

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

Modeling a To-Do List

Remember the Model-View-Controller architecture you read about in Chapter 26? You have already created a view (your storyboard and UI elements) and a controller (your ViewController class). At this point, however, you do not have a model. Create a Cocoa Touch class by selecting FileNewFile.... With iOS selected at the top, select Cocoa Touch Class from the Source section (Figure 27.18).

Figure 27.18 Creating a new Cocoa Touch class

Screen displays the creation of a new Cocoa touch class.

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