草庐IT

cLLocMgr

全部标签

ios - 何时调用 [clLocationManager stopUpdatingLocation]

为了在我的应用程序中节省电量,我决定在应用程序处于事件状态时混合使用startUpdatingLocation并在应用程序处于后台时进入startMonitoringSignificantLocationChanges模式。当应用程序进入后台时,我基本上会执行以下操作:-(void)applicationDidEnterBackground:(UIApplication*)application{[myLocationManagerstartMonitoringSignificantLocationChanges];}当应用程序返回前台时,我执行以下操作:-(void)applicat