MyLocations pg. 172: Use of undeclared type LocationsViewController

I don’t see why LocationsViewController is an undeclared type here. Did I miss something from the MainStoryboard?

Make sure the class is also named LocationsViewController (spelled exactly that way) in LocationsViewController.swift.

Also note that Xcode sometimes says something is an error while you’re typing in the code but when you press Cmd+B to build the app (or Cmd+R to run) then the error disappears. Sometimes Xcode is just confused.

1 Like

The class was spelled wrong. Thank you very much!