Can you set up a consta开发者_如何学Gont time update rate for CLLocationManager to force it update locations like every 10 seconds continuously? I know the usage of the distance filter but what if something went wrong and the location is not updated? Thanks!
It's not possible to control the update rate. You can set a timer, then turn off the updates until the timer ends. This is the usual thing to do to avoid using too much power.
If there's a problem, you will be informed by the delegate method locationManager:didFailWithError:
Here's a good post which shows how to filter bad CoreLocation readings:
http://troybrant.net/blog/2010/02/detecting-bad-corelocation-data/
精彩评论