A collection view is an instance of the UICollectionView class. Like a spreadsheet program, it displays a grid of cells. Each cell in a collection view is a collection view cell, which is an instance of the UICollectionViewCell class. In this section, you will add a collection view to the view for the Explore scene.
A collection view needs a view controller to tell it what to display and to handle user interactions. Let's create a new Cocoa Touch Class file and implement ExploreViewController, a subclass of the view controller class, to act as the collection view's view controller.
Open the LetsEat project you created in the previous chapter and run the app to make sure everything still works as it should. The tab bar and navigation bar are visible and the Explore screen is blank. Stop the app.
Let's begin by adding...