Getting Started with MVC and Collection Views
In the previous chapter, you modified the cells inside the Explore screen, the Restaurant List screen, and the Locations screen to match the app tour in Chapter 10, Setting Up the User Interface. You have completed the initial UI for the Let’s Eat app, and that concluded Part 2 of this book.
This chapter begins Part 3 of this book, where you will focus on the code that makes your app work. In this chapter, you will learn about the Model-View-Controller (MVC) design pattern and how the different parts of an app interact with one another. Then, you’ll implement a collection view programmatically (which means implementing it using code instead of storyboards) using a playground, to understand how collection views work. Finally, you’ll revisit the collection views you implemented in the Explore and Restaurant List screens, so you can see what the differences are between implementing them in a storyboard and implementing...