
startMonitoringSignificantLocationChanges: it does not rely on the value in the distanceFilter property to generate events. The receiver generates update events only when a significant change in the user’s location is detected
startUpdatingLocation : the receiver generates update events primarily when the value in the distanceFilter property is exceeded
因此,如果您想要更高的精度,请选择startUpdatingLocation,代价是更多的电池消耗,但更精确的位置.这实际上取决于你的目标,你应该评估权衡.
总结以上是内存溢出为你收集整理的ios – CLLocationManager的startMonitoringSignificantLocationChanges()和startUpdatingLocation()方法有什么区别?全部内容,希望文章能够帮你解决ios – CLLocationManager的startMonitoringSignificantLocationChanges()和startUpdatingLocation()方法有什么区别?所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)