Ios 如何防止iphone出现在Objective C中?

Ios 如何防止iphone出现在Objective C中?,ios,objective-c,iphone,Ios,Objective C,Iphone,当我将MKMapView的userTrackingMode设置为MKUserTrackingModeFollowWithHeading时,我的应用程序会一次又一次地显示指南针校准。如何防止这种情况? 这是我的locationManager的初始化 self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.desiredAccuracy = kCLLocationAccuracyBest; self.

当我将MKMapView的userTrackingMode设置为MKUserTrackingModeFollowWithHeading时,我的应用程序会一次又一次地显示指南针校准。如何防止这种情况? 这是我的locationManager的初始化

self.locationManager = [[CLLocationManager alloc] init];
self.locationManager.desiredAccuracy = kCLLocationAccuracyBest;
self.locationManager.distanceFilter = 5;
self.locationManager.delegate = self;
self.locationType = LocationManagerTypeNone;

CLLocationManagerDelegate有一种禁用校准显示的方法

:


但是我不确定MKMapView是否有不同的方法,您不能更改…

因为您希望航向使用指南针,并且指南针需要校准,您无法真正阻止它。是的,我有此方法并返回否。但从未调用它。