Restaurant Listing
Now that we have our Explore listing going to our Restaurant listing, we need to get our Collection View connected to our RestaurantListViewController
. The first thing we should do is create a folder inside of the Restaurant
folder:
- Right-click on the
Restaurant
folder and create a group calledRestaurant List
. - Then, right-click on the
Restaurant List
folder and create two new groups—Controller
andView
. - Right-click on the
Controller
and select New File. - Inside of the template screen, select iOS at the top and then Cocoa Touch Class. Then, hit Next.
- You will now see an options screen. Add the following:
New File:
- Class:
RestaurantListViewController
- Subclass…:
UIViewController
- Also create XIB:
Unchecked
- Language:
Swift
- Class:
- After hitting Next ...
Get iOS 10 Programming for Beginners now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.