Location Manager update frequency, iphone

霸气de小男生 提交于 2019-11-27 23:42:33
booleanBoy

Your location update starts only when you call the method [locationManager startUpdatingLocation].

You can control the frequency of the update using an NSTimer. Call the startUpdatingLocation method at regular intervals whenever you need a location update and then immediately call the stopUpdatingLocation method. The next time you will get a location update only at the interval you have set in the NSTimer.

vslifetracker

For detecting even the slightest of movements, you need to set

myLocation.distanceFilter = kCLDistanceFilterNone ; 

But, please keep in mind,letting location manager to generate updates for even the slightest of movements can end up in lot of battery usage.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!