Ios 我的应用程序没有';t发布定位服务
我的一个应用程序即使被用户杀死也不会发布位置服务 症状:位置服务图标始终显示在手机上 这与手机上的“后台应用刷新”设置有关,但据我所知,我没有使用任何后台服务 我在应用程序中的两个位置使用位置服务(我应该取消分配吗?) 地点1:Ios 我的应用程序没有';t发布定位服务,ios,mkmapview,Ios,Mkmapview,我的一个应用程序即使被用户杀死也不会发布位置服务 症状:位置服务图标始终显示在手机上 这与手机上的“后台应用刷新”设置有关,但据我所知,我没有使用任何后台服务 我在应用程序中的两个位置使用位置服务(我应该取消分配吗?) 地点1: locationManager = [[CLLocationManager alloc] init]; locationManager.delegate = self; locationManager.desiredAccuracy = kCLLocationAccur
locationManager = [[CLLocationManager alloc] init];
locationManager.delegate = self;
locationManager.desiredAccuracy = kCLLocationAccuracyBest;
[locationManager startMonitoringSignificantLocationChanges];
位置2:我在一个视图控制器中有一个
MKMapView
。您已使用startMonitoringSignificantLocationChanges
启动监视,还需要使用stopMonitoringSignificantLocationChanges
停止监视
我通常通过监听uiapplicationidentinterbackgroundnotification
和UIApplicationWillTerminateNotification
然后调用stopmoningsignitinglocationchanges
来实现这一点