Friday 22 June 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

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print &q...