Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我知道这CLLocationManager为我们提供了多种精度选择,因此它不会不断地向您发送一堆通知。但是这样省电吗?
CLLocationManager
我正在寻找一个地理围栏应用程序来提醒我下车。哈哈
功耗取决于 LocationManager 的所需精度设置。如果将其设置为 kCLLocationAccuracyBestForNavigation,则功耗最高。
在您的场景中,您可能会使用 kCLLocationAccuracyKilometer,因为公交车站应该至少相距一公里。