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 Enhance a Weather App with Table Views Implementing the Detail View Adding UI Elements

how to access the location ?!

good morning guys :) now we've ended the course but ! i don't know how to access locations ! :\ i mean does this app works in real life ?

idk

1 Answer

Keli'i Martin
Keli'i Martin
8,227 Points

By the end of the course, your app will only work on the hard-coded coordinates passed into the ForecastService(). Adding the ability for the app to know your real-time location requires extending the app to use CoreLocation, which is not covered in the course.

There are a number of resources available online to get you started with CoreLocation.

Also, if you're interested, I have been adding features to the Stormy app myself as a way of learning new concepts. Along with adding CoreLocation, I've also developed a Today extension to go along with the Stormy app. You can check it out on my Github page.