Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialDouglas Aldridge
5,634 PointsWeather 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
11,193 PointsThe 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.