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

cameryn smith
cameryn smith
2,828 Points

I need help with user location.

I keep getting 0.0000 returned back from my Location manager. I integrated the protocol and imported the class for CoreLocation. When I log out my newLocation object (CLLocation) I get 0.0000 for both my Lat and Long. Can someone please help me.

I just want my coordinates, nothing complicated. (Mapkit).

I have use both a device and the simulator for this. The same thing happens.

Please Help.

2 Answers

Sai Kiran Dasika
PLUS
Sai Kiran Dasika
Courses Plus Student 7,278 Points

I suggest you to use parse.com's PFGeo Point for these kind of stuff. It makes it very much easy to get the coordinates with few lines of code.

Chris Shaw
Chris Shaw
26,676 Points

Hi cameryn smith,

Have a look into the link below, it runs you through all the steps for getting a users location.

http://nshipster.com/core-location-in-ios-8/