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

Silver Challenge

Your ViewController class is currently taking on a little too much responsibility. When it is setting up the table view, the view controller is registering the cell class and reuse identifier, but TodoList is the class that actually wants to use the created cells. Fix this problem by coming up with a way for ViewController to successfully set up the table view without having to know the details of what kind of cells TodoList is going to want.

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