Ios LocationManager应显示未调用的HeadingCalibration
我创建了一个应用程序,可以与信标通信,管理地图和位置管理器 问题是,当显示地图时,航向校准屏幕出现得太频繁,即使我实现了locationManager委托返回NO的这种方法。但它从未被调用:Ios LocationManager应显示未调用的HeadingCalibration,ios,objective-c,mkmapview,core-location,cllocationmanager,Ios,Objective C,Mkmapview,Core Location,Cllocationmanager,我创建了一个应用程序,可以与信标通信,管理地图和位置管理器 问题是,当显示地图时,航向校准屏幕出现得太频繁,即使我实现了locationManager委托返回NO的这种方法。但它从未被调用: - (BOOL)locationManagerShouldDisplayHeadingCalibration:(CLLocationManager *)manager 这是my locationManager的配置: self.locationManager = [[CLLocationManager a
- (BOOL)locationManagerShouldDisplayHeadingCalibration:(CLLocationManager *)manager
这是my locationManager的配置:
self.locationManager = [[CLLocationManager alloc] init];
if ([self.locationManager respondsToSelector:@selector(requestWhenInUseAuthorization)]) {
[self.locationManager requestWhenInUseAuthorization];
}
[self.locationManager setDelegate:self];
[self.locationManager setDistanceFilter:1];
[self.locationManager requestAlwaysAuthorization];
[self.locationManager setDesiredAccuracy:kCLLocationAccuracyBestForNavigation];
[self.locationManager startUpdatingLocation];
[self.locationManager startUpdatingHeading];
我还将MKMapView设置为MKUserTrackingModeFollowWithHeading,我在StackOverflow中看到了其他问题,指出它可能会干扰locationManager委托方法。
在此应用程序中,跟踪用户在地图中的位置并同时让我的locationManager工作非常重要
不知道这是否是一个bug,或者是否存在解决方案
提前谢谢