mardi 10 mars 2015

How to immediately tell if location manager has failed to get location in iOS?


Vote count:

0




I need to check if location is available before proceeding to another view. But unless



locationManager:didFailWithError:


is called, I can't know if location service has become unavailable.


What I did is to start and stop location service to manually check failure and call a callback block then to present the view. But the problem is it might take up to several seconds to determine location availability.


So what is the best way to immediately tell if location manager has failed to get location?



asked 1 min ago







How to immediately tell if location manager has failed to get location in iOS?

Aucun commentaire:

Enregistrer un commentaire