I have an NSLog statement in my -didUpdateToLocation
method which prints the latitude of my location as expected:
NSLog(@"%g", newLocation.coordinate.latitude);
prints 37.3317
In the same method, i assign newLocation
to a CLLocation instance variable for use elsewhere.
self.selectedLocation = newLocation;
But when i NSLog this using %g
, i get this value -1.96638e-202
NSLog(@"%g", self.selectedLocation.coordinate.latitude);
What i have done wrong?
Thanks