# MyLocations pg. 172: Use of undeclared type LocationsViewController

**URL:** <https://forums.kodeco.com/t/mylocations-pg-172-use-of-undeclared-type-locationsviewcontroller/20604>\
**Category:** iOS Apprentice\
**Created:** [October 2, 2016, 2:33am UTC](https://forums.kodeco.com/t/mylocations-pg-172-use-of-undeclared-type-locationsviewcontroller/20604 "2016-10-02T02:33:47Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sisball8](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sisball8/32/41616_2.png) [@sisball8](https://forums.kodeco.com/u/sisball8)\
**Post date:** [October 2, 2016, 2:33am UTC](https://forums.kodeco.com/t/mylocations-pg-172-use-of-undeclared-type-locationsviewcontroller/20604/1 "2016-10-02T02:33:48Z")

</div>

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

 ![](https://raywenderlich-com-v3-forums.s3.amazonaws.com/original/3X/1/d/1dfaf6a8dedf62bd3a15800497e8a4a0928c85b0.png)

---

<div class="post-metadata">

**Author:** ![hollance](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/hollance/32/109009_2.png) [@hollance](https://forums.kodeco.com/u/hollance)\
**Post date:** [October 2, 2016, 9:04am UTC](https://forums.kodeco.com/t/mylocations-pg-172-use-of-undeclared-type-locationsviewcontroller/20604/2 "2016-10-02T09:04:58Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![sisball8](https://assets.chunter.kodeco.com/user_avatar/forums.kodeco.com/sisball8/32/41616_2.png) [@sisball8](https://forums.kodeco.com/u/sisball8)\
**Post date:** [October 3, 2016, 1:15am UTC](https://forums.kodeco.com/t/mylocations-pg-172-use-of-undeclared-type-locationsviewcontroller/20604/3 "2016-10-03T01:15:33Z")

</div>

The class was spelled wrong. Thank you very much!
