We want to get our data to display inside our Table View. Before we start, create three new folders inside the Location folder—Controller, View, and Model. As we have previously done, right-click on the Location
folder and hit New Group
to create a new folder.
Next, we need to create a Location View Controller class that we can use with our UIViewController
:
New file:
Class
:LocationViewController
Subclass
:UIViewController
Also create XIB
: UncheckedLanguage
:Swift
- Click on
Next
and thenCreate
.
Next, we need to connect our View Controller with our class:
- Select
Locations.storyboard
. - Then select the
View Controller
. - Now, in the Utilities panel, select the Identity inspector.
- Under
Custom Class
, in theClass
drop-down menu...