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
Kuldip Gill
2,988 PointsiOS weather app
How do you enable the app to find location settings. I don't want to hard code the user location.
2 Answers
Nick Jones
2,086 PointsHi Kuldip
Shouldn't be too hard but you'll need to make yourself familiar with the CoreLocation framework so unfortunately you'll need to take a look in to this yourself due to how many different ways you could go about implementing this particular feature. I'm not sure if this is frowned upon but this question on StackOverflow: http://bit.ly/1EGS3qG
Would be a great place to start.
agreatdaytocode
24,757 PointsKuldip Gill I've just released some code that would help you with this.
Check out This link
Take a look at the ViewController.swift file starting at line 110. Let me know if you have any questions.