Learning iOS Development: A Hands-on Guide to the Fundamentals of iOS Programming
by Maurice Sharp, Erica Sadun, Rod Strougo
Phase I: Replacing the Add/View Scene
To learn more about table views, you need cells with data. In this section, you create a car cell along with the code to populate it. You also add a way to create and remove cars. Along the way, you replace the add/view scene with a table view.
First you replace the add/view scene with a table view controller-based scene by following these steps:
1. Open the CarValet project. You can use an existing one or use the one provided in the CH08 CarValet Starter project.
2. Open the Storyboard editor, drag in a table view controller, and move the new view controller just above the existing edit/view scene.
3. Add two new Objective-C classes to your project just below Car.m: Base CarTableViewController on UITableViewController ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access