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 trial

iOS Network Programming with Swift 2 Implementing a Forecast Client Testing the Networking Stack

landon vago-hughes
landon vago-hughes
6,392 Points

After changing the coordinates to my location, the name of my location did not change?

After running the weather app in the simulator i just get alcatraz as the location even though the temperature and other information is based around my location. Would anyone have any idea how to change the name on the location to the coordinates I inputed?

1 Answer

Anthony Boutinov
Anthony Boutinov
13,844 Points

Right now the label is displaying the placeholder text provided in the storyboard. Either change it in the storyboard, or create an outlet and you will be able to change it in code.

Dark Sky Forecast API does not include the name of the location in it's response, as far as I can see, so you would have to use another API to figure out the name of the location.