Hi all,
I have written an iPhone app that uses the iPhone's relative GPS location.
I have a button in the user interface that does reverse geolocation (pulls the street name bases on the lat and long). The only problem is that the location object as retrieved by
CLLocation *location = [[self locationManager] location];
is nil if the user taps the button too soon. I am initializing the LocationManager in viewDidLoad as I don't want to object to be created unless the user actually loads this screen. I start updating the location straight away as well... but still if the user loads the screen and taps the GPS button straight away the location is nil.
Here comes the question: do you know roughly how much time the CLLocationManager needs to retrieve the location?
Thanks