Now that we have our Explore
listing going to our restaurant listing, we need to get our Collection View connected to our RestaurantListViewController
:
- Right-click inside of the
LetsEat
folder and selectNew File
. - Inside of the template screen, select
iOS
at the top and thenCocoa Touch Class
. Then, hitNext
.
You should now see an options screen.
- Add the following:
New file:
Class
:RestaurantViewController
Subclass
:UIViewController
Also create XIB
: UncheckedLanguage
:Swift
After hitting Next
, you will be asked to create this file.
- Select
Create
. - Let's delete both
didReceiveMemoryWarning()
andprepare()
(which has been commented out), as we do not need them at this time. - Open
Restaurants.storyboard
. - Then, select the
UIViewController
in the Utility panel, and select the Identity inspector, which is the third icon from the left. - Under
Custom Class
, and in theClass
drop-down menu, selectRestaurantViewController
and hit Enter.