Friday, June 22, 2018

ios - How come my locationManager is returning zero for latitude and longitude?

I am trying to obtain GPS location. I am running the iOS simulator and setting a custom location



enter image description here



My header file I define the locationManager.



enter image description here



In my ViewController Class I synthesize the locationManager.




enter image description here



In my viewDidLoad I implement the locationManager



enter image description here



In my trigger Method, I try to log out the location data. I get 0.



enter image description here




2015-03-22 11:21:24.539 APP_NAME[50197:558692] Lat: 0
2015-03-22 11:21:24.540 APP_NAME[50197:558692] Long: 0


UPDATE
I just tested on my iPod touch and had the same problem.

No comments:

Post a Comment

plot explanation - Why did Peaches' mom hang on the tree? - Movies & TV

In the middle of the movie Ice Age: Continental Drift Peaches' mom asked Peaches to go to sleep. Then, she hung on the tree. This parti...