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 9, Setting Up the Basic Structure.

You're now finished with the structure of the Let's Eat app, and this concludes Section 2 of this book.

This chapter begins Section 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 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 storyboard and implementing them programmatically.

By the end of this chapter, you'll understand the MVC design pattern, learn how a create a collection view controller programmatically and learn how to use collection view delegate and data source protocols.

The following topics will be covered:

  • Understanding the MVC design pattern
  • Exploring controllers and classes
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.219.236.70