Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

iOS Build a Weather App Dark Sky API Client The End

Weather App - Wrong location

I am getting Alcatraz Island, CA, instead of Austin, TX. Coordinate(latitude: 30.457967, longitude: -97.794971). I tried connecting it to my phone and ran the simulation but same results.

The output message is: 2017-07-11 19:50:52.729487-0500 Stormy[3529:1582109] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction 2017-07-11 19:50:52.731370-0500 Stormy[3529:1582109] [App] if we're in the real pre-commit handler we can't actually add any new fences due to CA restriction

Any ideas on what I am doing incorrectly?

1 Answer

Jonas Gamburg
Jonas Gamburg
11,193 Points

The name of the location you see in the top label is simply a label with some text in it. It does not change dynamically according to the coordinates you give it. In the storyboard change it's name to whatever you wish. If this is what you're referring to. Otherwise you'll need to use location services to determine your location in the app, but that's something else.